Skip to content

Instantly share code, notes, and snippets.

@openroomxyz
Created April 21, 2020 12:01
Show Gist options
  • Save openroomxyz/20aec2f6cb8097fd07f73606ceb1b182 to your computer and use it in GitHub Desktop.
Save openroomxyz/20aec2f6cb8097fd07f73606ceb1b182 to your computer and use it in GitHub Desktop.
Unity : How do we set tag to gameObject?
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