EventSystem.SetSelectedGameObject

Switch to Manual
public void SetSelectedGameObject (GameObject selected, EventSystems.BaseEventData pointer);

Parameters

selected 要选择的游戏对象。
pointer 关联的 EventData。

Description

Set the object as selected. Will send an OnDeselect the the old selected object and OnSelect to the new selected object.