Skip to content

Commit f89e983

Browse files
authored
Fix Stream Layer Sample (#67)
* Fix Stream Layer Sample * Add Macro for display name
1 parent a7b6f10 commit f89e983

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
Binary file not shown.

sample_project/Source/sample_project/Stream Layer/StreamLayerQuery.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ void AStreamLayerQuery::SpawnPlane(FPlaneFeature PlaneFeature)
9393
spawnInfo
9494
);
9595
planeActor->FeatureData = PlaneFeature;
96+
#if WITH_EDITOR
9697
planeActor->SetActorLabel(*PlaneFeature.Attributes.Name);
98+
#endif
9799
planeActor->LocationComponent->SetPosition(UArcGISPoint::CreateArcGISPointWithXYZSpatialReference(
98100
PlaneFeature.Geometry.X, PlaneFeature.Geometry.Y, PlaneFeature.Geometry.Y,
99101
UArcGISSpatialReference::CreateArcGISSpatialReference(4326)));

0 commit comments

Comments
 (0)