Get a reference of a Mesh from Editor to C++ Code
Hi guys, I am new and am going though the video tutorials. In the LevelCreation tutorials there is a blueprint that implements an Auto-sliding Door with a box trigger. I was wondering how can I do that with C++ code only. I am comming from Unity and I was wondering, how I can get the reference of the door from the editor and give it to the C++ code directly (By drag and dropping - just like in Unity). This is a feature that I like very much in Unity and I was wondering if it is possible in Unreal. If it is not, can you tell me how I can get a reference to the door?
you're better off giving your Door Actor a specific name via the F4 menu and then looking it up in C++ using the ActorIterator
in an AActor extending class
If you already have the object in the level, you have to interact between the actors. If you want to spawn and manage it from code, do something like this in the constructor:
This applies to Textures (as in the example) as well as Meshes and other stuffs.
answered Jan 17 '15 at 04:24 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here