CacheTransformAttribute
A class in Alta.Attributes, the global namespace.
Prefab-apply attribute for a Transform field: when the prefab is applied, sets the field to the component's own transform.
- Listed in Other Alta assemblies
- Inherits or implements
PrefabApplyAttribute
Constructors
| Member | What it is |
|---|---|
CacheTransformAttribute() | Creates a CacheTransformAttribute with default values. |
Fields
1 private and internal field
Methods
| Member | What it is |
|---|---|
override bool HandleApply(Component component, FieldInfo field, GameObject prefab) | Writes the component's own transform into the field. Returns true when the value changed. |