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

error CS0119

$
0
0
So I'm really super new to C# and Unity, but hey, everyone needs to start somewhere right? Anyway, where in the following script is the error? Error message: "error CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected" using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour { void FixedUpdate () { float moveHorizontal = Input.GetAxis("Horizontal"); float moveVertical = Input.GetAxis("Vertical"); Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical); rigidbody.AddForce(Vector3); } }

Viewing all articles
Browse latest Browse all 7934

Latest Images

Trending Articles



Latest Images

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