Quantcast
Channel: Questions in topic: "tagging"
Viewing all articles
Browse latest Browse all 120

can someone tell me whats wrong with this code?

$
0
0
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 all articles
Browse latest Browse all 120

Trending Articles



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