Method RemoveControl
RemoveControl(GameObject)
Removes the passed in component from the control panel. Returns false if the element does not exist. Returns true on a successful removal. The caller is responsible for destroying the control.
Declaration
public bool RemoveControl(GameObject uiControl)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | uiControl | The control that needs to be removed from the panel |
Returns
| Type | Description |
|---|---|
| bool | True if the control could be removed, false if there was an issue removing the control |