ErayT
(ErayT)
August 21, 2014, 2:13pm
1
Is there a way to initialize an actor without spawning it?
In the mean time I do not want to loose calling the constructor below:
AGroundManager::AGroundManager(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
GroundVelocity = FVector::FVector(0.0f, -1.0f, 0.0f);
}
joeGraf
(joeGraf)
August 21, 2014, 2:38pm
2
Actors have to be spawned. However, when you spawn the actor, the constructor is called, so your code will run
joeGraf
(joeGraf)
August 21, 2014, 2:40pm
3
Definitely, do not do this. If it even works, it will lead to numerous problems
ErayT
(ErayT)
August 21, 2014, 3:23pm
4
I see. However, it forces me a lot to change the design all the time to satisfy such restriction I try to come up with general and good designs but ue4 at some point says you cannot go on anymore