ドキュメント

Unity Engine

Unity Engine

RenderStaticPreview(string, Object[], int, int)

Creates a texture preview for rendering the Tile asset preview.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public override Texture2D RenderStaticPreview(string assetPath, Object[] subAssets, int width, int height)

Parameters

assetPath

The asset to operate on.

subAssets

An array of all Assets at assetPath.

width

Width of the created texture.

height

Height of the created texture.

Returns

Type

Description

Texture2DGenerated texture or null.