Transform.localRotationvar localRotation : QuaternionDescriptionThe rotation of the transform relative to the parent transform's rotation. Unity stores rotations as Quaternions internally. To rotate an object, use Transform.Rotate. Use Transform.localEulerAngles for modifying the rotation as euler angles.
JavaScripts
using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void Awake() { transform.localRotation = Quaternion.identity; } } import UnityEngine
import System.Collections class example(MonoBehaviour): def Awake(): transform.localRotation = Quaternion.identity |
