[Closed] Accessing Blueprint properties wihout spawning
If I want to read properties of an object that are declared in a C++ class, but set in Blueprint, is there a way to do it without spawning ? In Unrealscript, defaultproperties could be accessed statically, I wonder os such a thing exists in UE4.
Like if you want a weapon choice menu, you need to display the weapon's properties, but actually spawning the weapon could be an issue.
asked Apr 11 '14 at 06:32 AM in C++ Programming
The question has been closed Apr 28 '15 at 07:44 AM by Gwenn for the following reason:
The question is answered, right answer was accepted
Yeah, you can use the same general method as UE3. Here's some example code using the DefaultPawnClass that's defined in GameMode:
This is a bit unsafe (you could modify the object at this point and cause issues) so it's not exposed to blueprints, but you can do it from C++ as needed.
answered Apr 11 '14 at 10:38 PM
[Epic]Ben Zeigler STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here