unity editor new object selected code example Example: unity select gameobject Selection.activeGameObject=vWay.gameObject;