Question by
AvatarMars · Dec 23, 2018 at 04:03 AM ·
getcomponentparentfindgameobjectswithtagfindgameobjectwithtagget component
Is it possible to get a component from a parent of a found GameObject?
Is it possible or even a good idea to get a variable like this? I get an object reference not set to an instance error when doing so.
GameObject.FindGameObjectWithTag("tag").transform.parent.gameObject.GetComponent().floatValue
Comment