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

How to fix Cannot implicitly convert type 'UnityEngine.Transform' to 'UnityEngine.Vector3'

$
0
0
using UnityEngine; using System.Collections; public class Ai1 : MonoBehaviour { private Vector3 Player; private Vector2 PlayerDirection; private float Xdif; private float Ydif; // Use this for initialization void Start () { } // Update is called once per frame void Update () { Player = GameObject.Find("Player").transform; } the error appears in the line of code that says: Player = GameObject.Find("Player").transform;

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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