unity select object in inspector via script code example Example: unity select gameobject Selection.activeGameObject=vWay.gameObject;