Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DrawPresetButton(Rect, Object[])

Draw a Preset button that opens the default PresetSelector using the targets array.
Read time 1 minuteLast updated 5 days ago

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.