Skip to main content

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.

Constructors​

MemberWhat it is
CacheTransformAttribute()Creates a CacheTransformAttribute with default values.

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger for this class. Not used.

Methods​

MemberWhat 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.