TransformUtilsGlobalToLocalPosition Method |
Converts a global position of a transform to local position in its parent's coordinate system.
Namespace:
TouchScript.Utils
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static Vector3 GlobalToLocalPosition(
Transform transform,
Vector3 global
)
Parameters
- transform
- Type: Transform
The transform. - global
- Type: Vector3
The global position.
Return Value
Type:
Vector3Local position in transform parent's coordinate system.
See Also