文档

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.
阅读时间1 分钟最后更新于 23 天前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
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.