Skip to main content

UIDisplayGrid.SetSelectedItem

Declaration#

public virtual void SetSelectedItem(T item)

Parameters#

NameDescription
itemItem to set as selected

Description#

Set object as selected and update the selectedIndex to match

Usage#

using NullSave.GDTK;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(UIDisplayGrid target, string other)    {       target.SetSelectedItem(other);    }
}