기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


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

Creates a texture preview for rendering the Tile asset preview.
읽는 시간 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.