Try using other.tag == “”
public void OnTriggerEnter(Collider collider) { if (collider.tag == “Your_Tag_Here”){ Debug.Log (“Collider”); } }