C# Класс KerbCam.TransformState

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

MoveToParent() публичный статический Метод

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.
Результат void

ResetTransformToIdentity() публичный статический Метод

public static ResetTransformToIdentity ( Transform trn ) : void
trn UnityEngine.Transform
Результат void

Revert() публичный Метод

public Revert ( ) : void
Результат void

Store() публичный Метод

public Store ( ) : void
Результат void

TransformState() публичный Метод

public TransformState ( Transform trn ) : UnityEngine
trn UnityEngine.Transform
Результат UnityEngine