[ObjectPreview]

Attribute used for displaying a preview of the referenced asset below the field.

Support Types

Type
Example
Description

Object

Sprite, Texture, GameObject

Unity Object types

Parameters

Parameter Name
Arguments
Description

Height

float

Height of the preview window in pixels.

Examples

[ObjectPreview]
public Sprite sprite;

[ObjectPreview(Height = 200)]
public Texture2D texture;

Last updated