Struct TransformBackup
Represents a structure to store a Transform position, rotation, and scale temporarily.
Inherited Members
Namespace: TriLibCore.General
Assembly: TriLibCore.dll
Syntax
public struct TransformBackup
Constructors
TransformBackup(Transform)
Represents a structure to store a Transform position, rotation, and scale temporarily.
Declaration
public TransformBackup(Transform transform)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | The Transform to backup the data from. |
Methods
Restore(Transform)
Restores the Transform position, rotation and scale to the original value.
Declaration
public void Restore(Transform transform)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | The Transform to restore the data. |