SearchItem.ToObject

Declaration

public Object ToObject();

Declaration

public Object ToObject(Type type);

Parameters

type Used to validate if the object is assignable to Type.

Returns

Object Returns a Unity Object or null if there is none.

Description

Returns any valid Unity Object held by the search item.

See SearchProvider.toObject more information on what it means to convert a SearchItem to a UnityEngine.Object.


Declaration

public T ToObject();

Returns

T Used to validate if the object is assignable to T.

Description

Returns any valid Unity Object held by the search item.


Did you find this page useful? Please give it a rating: