Posted October 21, 2018 by Perkedel Technologies
#problem solving #progress
Previously, on
But still a problem.
My game has different menu part, clustered by inherited gameObjects.
I know! I have made a method!
//Workaround to get the store selected selects button on newly activated menu part e.g. Menu -> Option //Fill it with the selectable Button GameObject! public void SetStoreSelected(GameObject newThing) { StoreSelected = newThing; eventSystem.SetSelectedGameObject(StoreSelected); }
Then it will loaded to a button OnClick(), to trigger this method, on LevelLoader.cs in this case.
Now after choosing that method, fill it with the new selectable gameObject on that new menu part. check SampleMenuScene to see it.