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

Problems with tagging using OnMouseDown()

$
0
0
Hey guys, I have been writing a really successful script and I nearly finished it, but I faced a problem- using UnityEngine; using System.Collections; public class Test : MonoBehaviour { void OnMouseDown() { gameObject.tag = "Example"; } } Isn't working for some reason, I don't know why but for some reason it isn't. Could you please tell me how can I fix this problem, thanks! PS I have declared the tag and everything and it is working with if(...) and I am not getting any errors.

Viewing all articles
Browse latest Browse all 120

Trending Articles



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