Skip to content

Transform bindings

SDraw edited this page Jun 14, 2023 · 3 revisions

Refer to Unity's Transform documentation for properties and methods description.

Properties

  • childCount: get, integer
  • eulerAngles: get/set, Vector3
  • forward: get, Vector3
  • hierarchyCapacity: get/set, integer
  • hierarchyCount: get, integer
  • localEulerAngles: get/set, Vector3
  • localPosition: get/set, Vector3
  • localRotation: get/set, Quaternion
  • localScale: get/set, Vector3
  • localToWorldMatrix: get, Matrix4x4
  • lossyScale: get, Vector3
  • parent: get/set, Transform
  • position: get/set, Vector3
  • right: get, Vector3
  • root: get, Transform
  • rotation: get/set, Quaternion
  • up: get, Vector3
  • worldToLocalMatrix: get, Matrix4x4

Methods

  • bool DetachChildren()
  • bool Find(string name)
  • Transform GetChild(int index)
  • int GetSiblingIndex()
  • Vector3 InverseTransformDirection(Vector3 direction)
  • Vector3 InverseTransformPoint(Vector3 position)
  • Vector3 InverseTransformVector(Vector3 vector)
  • bool IsChildOf(Transfrom parent)
  • bool LookAt(Transform target)
  • bool Rotate(Vector3 angles, string space = "Self")
  • bool RotateAround(Vector3 point, Vector3 axis, float angle)
  • bool SetAsFirstSibling()
  • bool SetAsLastSibling()
  • bool SetParent(Transform parent)
  • bool SetPositionAndRotation(Vector3 position, Quaternion rotation)
  • bool SetSiblingIndex(int index)
  • Vector3 TransformDirection(Vector3 direction)
  • Vector3 TransformPoint(Vector3 point)
  • Vector3 TransformVector(Vector3 vector)
  • bool Translate(Vector3 vector)

Utility functions

  • bool IsTransform(object obj): checks of object is type of Transform.

Notes

  • Inherits properties and methods from Component.