Method SetupEnabled
SetupEnabled(MaterialEditor)
Sets the Enabled boolean to the value currently in the source based on the settings of this control. Should only be used inside ControlGUI(MaterialEditor).
Declaration
protected void SetupEnabled(MaterialEditor materialEditor)
Parameters
| Type | Name | Description |
|---|---|---|
| MaterialEditor | materialEditor | Material editor. |
Remarks
This method is available for all section controls inheriting this class and will automatically fetch the current value of the Show boolean based on if the section folding state is handled by a material property or a dictionary value. You should call it inside your override of ControlGUI(MaterialEditor), possibly at the start of it.