Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

Creates a texture preview for rendering the TileBase asset preview.
Read time 1 minuteLast updated 6 days ago

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.