文档

Unity Engine

Unity Engine

OnActivate(string, VisualElement)

Overrides SettingsProvider.OnActivate for this AssetSettingsProvider.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
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.