文档

Unity Engine

Unity Engine

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

Creates a texture preview for rendering the TileBase 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.