Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Event System SetSelectedGameObject Error, but code still runs fine.

$
0
0
I'm using the following line of code to change the button selected by the event system when using a game pad:> EventSystem.current.SetSelectedGameObject(level_1); However I'm getting the following error when it is called: > Attempting to select level_1> (UnityEngine.GameObject)while already> selecting an object The thing is the code still runs, and the button can't be selected by a game pad without it, but it still throws up the error. Is this something I should be worried about? If not, can I just suppress the error and move on?

Viewing all articles
Browse latest Browse all 2891

Trending Articles