how to check if im on the parent object unity code example Example: check if object has parent unity if(transform.parent != null) { }