Method AddControl
AddControl(SimpleControl)
Method used to add a control to the list of controls that are under this object
Declaration
void AddControl(SimpleControl control)
Parameters
| Type | Name | Description |
|---|---|---|
| SimpleControl | control | Control to add |
Remarks
Simple Shader Inspectors needs an endpoint to add controls inside IControlContainer objects using Chainable methods, and this is the one it uses.
This approach is preferable compared to defining a list because it will leave the control the freedom to handle how to store ad manage controls passed by the inspector.