GetComponentIfEmptyAttribute
A class in Alta.Attributes, the global namespace.
Like GetComponentAttribute, but only fills the field when it is empty.
- Listed in Other Alta assemblies
- Inherits or implements
GetComponentAttribute
Constructors
| Member | What it is |
|---|---|
GetComponentIfEmptyAttribute() | Creates a GetComponentIfEmptyAttribute with default values. |
Methods
| Member | What it is |
|---|---|
override bool HandleApply(Component component, FieldInfo field, GameObject prefab) | Skips the field if it already has a value, else looks it up as the base does. |