Created
April 21, 2020 12:01
-
-
Save openroomxyz/20aec2f6cb8097fd07f73606ceb1b182 to your computer and use it in GitHub Desktop.
Unity : How do we set tag to gameObject?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.gameObject.tag = "Terrain"; //Note that you can’t attract gameObject to a tag that was not created, … but you can create is in code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment