TileBaseEditor.RenderStaticPreview

Declaration

public 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

Texture2D Generated texture or null.

Description

Creates a texture preview for rendering the TileBase asset preview.


Did you find this page useful? Please give it a rating: