How to attach a camera component to a actor at runtime?
I'd like to know how to attach a camera component to a actor dynamically. I know I can attach one using PCIP in the constructor, but can I attach a camera component at runtime outside the constructor? I think I need to register it after I attach it? Also, How to set the new attached camera as the main camera?
P.S. I think I don't need to load a camera asset in this situation, but if I want to attach a mesh or something, how to load the asset at runtime?
asked Jul 15 '14 at 02:03 PM in C++ Programming
https://docs.unrealengine.com/latest/INT/Programming/Assets/AsyncLoading/index.html - loading asset at run-time.
To attach actor/component to another actor/component you should call
Follow this question
Once you sign in you will be able to subscribe for any updates here