"Instanced Objects" in Blueprints
Last updated
Last updated
This feature is present in release v30 onwards.
If a UObject property is marked as "instanced", then it will allow you to create the subobjects within the defaults of a class, which is useful for making data driven systems and config assets.
This is a feature that is not exposed to BP in native Unreal, but we have added some helpers to support this.
First is the M2_InstancedObject
class. This is a simple UObject, but defaults to instanced, with inlined properties. This means that if you make a class that is a child of this, you can mark it as "instanced"
To mark a M2_InstancedObject
subclass property, go to the Details
panel, and expand the Advanced
section. Check the Instanced
checkbox, and recompile. You will then be able provide an instanced object in the default value.
NOTE: If the Instanced
property is not visible, it could be that the variable class is not an M2_InstancedObject
- not all classes can be marked as instanced.