Version: 2017.1
public Quaternion localRotation ;

Descripción

La rotación del transform relativo a la rotación del transform del padre.

Unity stores rotations as Quaternions internally. To rotate an object, use Transform.Rotate. Use Transform.localEulerAngles for modifying the rotation as euler angles.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { transform.localRotation = Quaternion.identity; } }