Quantcast
Viewing all articles
Browse latest Browse all 4

Answer by robertbu

Try this: using UnityEngine; using System.Collections; public class NoRotation : MonoBehaviour { private Quaternion q; void Start () { q = transform.rotation; } void Update () { transform.rotation = q; } } Or you could figure out and fix the null reference error.

Viewing all articles
Browse latest Browse all 4

Trending Articles