unity if this game object has tag code example Example: get if object has tag unity if (NameOfGameObject.tag == "A-Tag") { // some code }