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.CoreModule
public Texture TexturePropertyMiniThumbnail(Rect position, MaterialProperty prop, string label, string tooltip)
Parameters
Rect that this control should be rendered in.
Label for the field.
Returns
Type | Description |
|---|---|
| Texture | Returns 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.