文档

Unity Engine

Download Unity

Unity Engine

DrawPresetButton(Rect, Object[])

Draw a Preset button that opens the default PresetSelector using the targets array.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static bool DrawPresetButton(Rect rectangle, Object[] targets)

Parameters

rectangle

The Rect where the PresetSelector icon is drawn.

targets

List of objects to which the selected Preset is applied.

Returns

Type

Description

boolTrue if the button is drawn for the target object. Otherwise, false.