C++ Access To Variables Using Reflection
I am trying to access the UProperties of Blueprints using reflection. I can access them, it appears, if the property is a class, but not a simple variable type (bool/int/struct, etc.). For example, if I create a Blueprint and add a Dynamic Material Instance property, it shows up in the list of properties for the class. However, if I create a simple LinearColor or float as a variable on the Blueprint, it doesn't show up. How to access these variables using reflection?
asked Jun 12 '15 at 08:07 PM in C++ Programming
When accessing a variable that has been created in the blueprint editor in C++, you'll need to access them by the name of the UProperty, and then use ContainerPtrToValuePtr to do anything with them. You can find more information about ContainerPtrToValuePtr here:
Hope this helps!
answered Jun 15 '15 at 04:56 PM
Matthew J ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here