Version: 2023.1

SearchUtils.GetSceneObjectPreview

切换到手册
public static Texture2D GetSceneObjectPreview (GameObject obj, Vector2 size, Search.FetchPreviewOptions options, Texture2D thumbnail);

参数

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

返回

Texture2D Object preview or thumbnail fallback.

描述

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