Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


OnActivate(string, VisualElement)

Overrides SettingsProvider.OnActivate for this AssetSettingsProvider.
Read time 1 minuteLast updated 8 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public override void OnActivate(string searchContext, VisualElement rootElement)

Parameters

searchContext

Search context in the search box on the Settings window.

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.