C# Class KerbCam.TransformState

ファイルを表示 Open project: huin/kerbcam Class Usage Examples

Public Methods

Method Description
MoveToParent ( Transform toMove, Transform newParent ) : void

Moves toMove, retaining the local position, scale, rotation. This is in contrast to simply modifying Transform.parent, which modifies the local transformation state to retain the same world-space result.

ResetTransformToIdentity ( Transform trn ) : void
Revert ( ) : void
Store ( ) : void
TransformState ( Transform trn ) : UnityEngine

Method Details

MoveToParent() public static method

Moves toMove, retaining the local position, scale, rotation. This is in contrast to simply modifying Transform.parent, which modifies the local transformation state to retain the same world-space result.
public static MoveToParent ( Transform toMove, Transform newParent ) : void
toMove UnityEngine.Transform The Transform to reparent.
newParent UnityEngine.Transform The new parent Transform.
return void

ResetTransformToIdentity() public static method

public static ResetTransformToIdentity ( Transform trn ) : void
trn UnityEngine.Transform
return void

Revert() public method

public Revert ( ) : void
return void

Store() public method

public Store ( ) : void
return void

TransformState() public method

public TransformState ( Transform trn ) : UnityEngine
trn UnityEngine.Transform
return UnityEngine