Ogniok
(Ogniok)
1
Hi
I have to add components in my Construction Script in C++, but I don’t know how to do this.
I’m overriding:
void ATowerVisuals::OnConstruction(const FTransform& Transform)
I guess I should use function AddComponent, but I don’t know how.
Any help would be appreciated.
Ogniok
(Ogniok)
2
I found a solution to my problem.
Instead of creating new components in construction script, I create subobject in constructor and then just select proper mesh in Construction Script.
ivanesses
(ivanesses)
3