@@ -16,7 +16,8 @@ void AGeometryHubActor::BeginPlay()
16
16
17
17
// DoActorSpawn1();
18
18
// DoActorSpawn2();
19
- DoActorSpawn3 ();
19
+ // DoActorSpawn3();
20
+ DoActorSpawn4 ();
20
21
}
21
22
22
23
void AGeometryHubActor::DoActorSpawn1 ()
@@ -80,6 +81,17 @@ void AGeometryHubActor::DoActorSpawn3()
80
81
}
81
82
}
82
83
84
+ void AGeometryHubActor::DoActorSpawn4 ()
85
+ {
86
+ if (!GetWorld ()) return ;
87
+
88
+ FTransform GeometryTransform = FTransform (FRotator::ZeroRotator, FVector (700 .0f , 300 .0f , 300 .0f ));
89
+ NonePropertyActor = GetWorld ()->SpawnActor <ABaseGeometryActor>(GeometryClass, GeometryTransform);
90
+
91
+ GeometryTransform = FTransform (FRotator::ZeroRotator, FVector (700 .0f , 700 .0f , 300 .0f ));
92
+ PropertyActor = GetWorld ()->SpawnActor <ABaseGeometryActor>(GeometryClass, GeometryTransform);
93
+ }
94
+
83
95
void AGeometryHubActor::OnColorChanged (const FLinearColor& Color, const FString& Name)
84
96
{
85
97
UE_LOG (LogGeometryHub, Warning, TEXT (" Actor name: %s Color %s" ), *Name, *Color.ToString ());
@@ -102,4 +114,7 @@ void AGeometryHubActor::OnTimerFinished(AActor* Actor)
102
114
void AGeometryHubActor::Tick (float DeltaTime)
103
115
{
104
116
Super::Tick (DeltaTime);
117
+
118
+ UE_LOG (LogGeometryHub, Warning, TEXT (" property pointer %i, is valid %i" ), PropertyActor != nullptr , IsValid (PropertyActor));
119
+ UE_LOG (LogGeometryHub, Error, TEXT (" none property pointer %i, is valid %i" ), NonePropertyActor != nullptr , IsValid (NonePropertyActor));
105
120
}
0 commit comments