HasReferenceValueAttribute
A class in Alta.Attributes, the global namespace.
Prefab apply attribute for a bool field: keeps it set to whether another named field holds a non-null object.
- Listed in Other Alta assemblies
- Inherits or implements
PrefabApplyAttribute
Constructors
| Member | What it is |
|---|---|
HasReferenceValueAttribute(string targetField) | Creates a HasReferenceValueAttribute from targetField. |
Fields
2 private and internal fields
Methods
| Member | What it is |
|---|---|
override bool HandleApply(Component component, FieldInfo field, GameObject prefab) | Sets the bool field to whether the target field is non-null and returns true if that changed it. |