Expose properties of another class to the editor
I have a door derived from
I want to be able to set
Also wondering if this would be possible for actors containing other actors, say I have an
You could have the Lockable class derive from AActor, and then have any lockable actors derive from it:
This gets a little unwieldy if you have lots of combinations. The other way to go about is by placing your Lockable functionality within a component.
You can also use CreateOptionalDefaultSubobject in your constructor; or you can create the object dynamically after spawn in a separate method via NewObject.
In the editor your isLockable and keyID properties would appear as values within the LockableComponent property.
answered Oct 01 '16 at 01:05 AM
I would also like to surface UPROPERTYs from other classes used as data members. However, I don't think it's possible. The only workaround I can think of is to copy the UPROPERTYs you want into the root class and forward changes to the object. For example in the header of my actor component I have:
and after the value is changed in editor, forward the message:
answered Sep 30 '16 at 10:36 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here