Quantcast
Viewing latest article 4
Browse Latest Browse All 120

can someone tell me whats wrong with this code?

using System.Collections; using System.Collections.Generic; using UnityEngine; public class TagAssignCube : MonoBehaviour { public GameObject cube; // Use this for initialization void Start () { cube = GameObject.Find ("Cube"); cube.tag= 'Player'; } // Update is called once per frame void Update () { } } Trying to tag the gameobject Cube in my scene through code.

Viewing latest article 4
Browse Latest Browse All 120

Trending Articles



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