Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

i am new to unity and i am trying to make a script with c# to move forward but an error keeps coming up

$
0
0
the error says vector3.forward can not be assigned to (it is read only) this is my script using UnityEngine; using System.Collections; public class basicmove : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { transform.Translate (Vector3.forward = Input.GetAxis ("Vertical") * Time.deltaTime); } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>