Quantcast
Viewing latest article 12
Browse Latest Browse All 120

How do you find the tag of the object that is a trigger?

So, I'm new to unity, so I don't know if this is possible, but: How do you check the tag of the object that is in a trigger? Any way to do this would work. For example, I have a two player game with a selection screen that uses two cursors to choose, and I want the buttons to be able to discern the tag *(Player1 and Player2)* so that my game knows which character is chosen by which player. On a side note, the cursors are rigidbodies, and the "button" is a trigger. This is because it is local multiplayer, meant to be played on a single keyboard.

Viewing latest article 12
Browse Latest Browse All 120

Trending Articles



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