Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TexturePropertyMiniThumbnail(Rect, MaterialProperty, string, string)

Draw a property field for a texture shader property that only takes up a single line height.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public Texture TexturePropertyMiniThumbnail(Rect position, MaterialProperty prop, string label, string tooltip)

Parameters

position

Rect that this control should be rendered in.


label

Label for the field.

tooltip

Returns

Type

Description

TextureReturns total height used by this control.

Remarks

The thumbnail is shown to the left of the label. Note for some textures it might use more vertical space than a single line height because of an additional information box.