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.SetInspectorRotation

public static void SetInspectorRotation(Transform t, Vector3 r);

Parameters

tTransform to set the rotation on.
rRotation as it would be set by the Transform Inspector window.

Description

Sets the rotation of a transform as it would be set by the Transform Inspector window.

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