USceneComponent With C++
Hi, i'm just wondering how you can give a class a transform. I know i can use blueprint to give the object a transform with the scene component but i would like to be able to add a root component in C++ that can give the class a transform. I have been looking around and found the USceneComponent but i'm having trouble getting one into my code, anyone have an example for me to try?
asked Apr 08 '14 at 01:44 PM in C++ Programming
The AActor class has a RootComponent property. If you look at a class such as AAmbientSound you can see how a SceneComponent subclass is instantiated and then assigned to the RootComponent pointer. This gives your AActor its position in the world.
answered Apr 08 '14 at 01:48 PM
Marc Audy STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here