Method OnActivate
OnActivate(string, VisualElement)
Use this function to implement a handler for when the user clicks on the Settings in the Settings window. You can fetch a settings Asset or set up UIElements UI from this function.
Declaration
public override abstract void OnActivate(string searchContext, VisualElement rootElement)
Parameters
Type | Name | Description |
---|---|---|
string | searchContext | Search context in the search box on the Settings window. |
VisualElement | rootElement | Root of the UIElements tree. If you add to this root, the SettingsProvider uses UIElements instead of calling SettingsProvider.OnGUI to build the UI. If you do not add to this VisualElement, then you must use the IMGUI to build the UI. |