The rotation of the transform relative to the parent transform's rotation.
// Set the rotation to be the same as the parent transform.localRotation = Quaternion.identity;
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { transform.localRotation = Quaternion.identity; } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: transform.localRotation = Quaternion.identity