ドキュメント

Unity Engine

Unity Engine

OnActivate(string, VisualElement)

Overrides SettingsProvider.OnActivate for this AssetSettingsProvider.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.