Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

TransformUtils.GetInspectorRotation

public static Vector3 GetInspectorRotation(Transform t);

Parameters

tTransform to get the rotation from.

Returns

Vector3 Rotation as it is shown in the Transform Inspector window.

Description

Returns the rotation of a transform as it is shown in the Transform Inspector window.

Did you find this page useful? Please give it a rating: