Click or drag to resize

TransformUtils Class

Utility methods to work with Transforms.
Inheritance Hierarchy
SystemObject
  TouchScript.UtilsTransformUtils

Namespace:  TouchScript.Utils
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static class TransformUtils

The TransformUtils type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetHeirarchyPath
Returns the string path of the transform in the hierarchy, i.g. "GameObject/ChildGameObject".
Public methodStatic memberGlobalToLocalDirection
Converts a global direction of a transform to local direction in its parent's coordinate system.
Public methodStatic memberGlobalToLocalPosition
Converts a global position of a transform to local position in its parent's coordinate system.
Public methodStatic memberGlobalToLocalVector
Converts a global vector of a transform to local vector in its parent's coordinate system. The difference from GlobalToLocalDirection(Transform, Vector3) is that this vector has length.
Top
See Also