Method AddNewControl
AddNewControl(GameObject)
Adds a new UI control to the control panel. If the control cannot be added and the method will return false. Also, all UI elements must have a LayoutElement component and if they do not, this method will reject the new element, and return false.
Declaration
public bool AddNewControl(GameObject uiControl)
Parameters
Type | Name | Description |
---|---|---|
GameObject | uiControl | The control that is to be added to the control panel |
Returns
Type | Description |
---|---|
bool | True if the control could be added, false if it there was a problem adding it |