SearchUtils.GetSceneObjectPreview

Declaration

public static Texture2D GetSceneObjectPreview(GameObject obj, Vector2 size, Search.FetchPreviewOptions options, Texture2D thumbnail);

Parameters

obj Scene object instance.
size Preview size.
options Preview options.
thumbnail Any existing thumbnail in case we cannot obtain a scene object preview.

Returns

Texture2D Object preview or thumbnail fallback.

Description

Returns a scene object preview to be used in the search view.


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