ドキュメント

Unity Engine

Unity Engine

GetSceneObjectPreview

Returns a scene object preview to be used in the search view.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

GetSceneObjectPreview(GameObject, Vector2, FetchPreviewOptions, Texture2D)

Returns a scene object preview to be used in the search view.
public static Texture2D GetSceneObjectPreview(GameObject obj, Vector2 size, FetchPreviewOptions options, Texture2D thumbnail)

Parameters

Scene object instance.

Preview size.

Preview options.

thumbnail

Any existing thumbnail in case we cannot obtain a scene object preview.

Returns

Type

Description

Texture2DObject preview or thumbnail fallback.

Remarks

GetSceneObjectPreview(SearchContext, GameObject, Vector2, FetchPreviewOptions, Texture2D)

Returns a scene object preview to be used in the search view.
public static Texture2D GetSceneObjectPreview(SearchContext ctx, GameObject obj, Vector2 size, FetchPreviewOptions options, Texture2D thumbnail)

Parameters


Scene object instance.

Preview size.

Preview options.

thumbnail

Any existing thumbnail in case we cannot obtain a scene object preview.

Returns

Type

Description

Texture2DObject preview or thumbnail fallback.

Remarks