docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PerceptionSettingsProvider

    Settings provider for the perception settings pane

    Inheritance
    object
    SettingsProvider
    PerceptionSettingsProvider
    Inherited Members
    SettingsProvider.HasSearchInterest(string)
    SettingsProvider.OnTitleBarGUI()
    SettingsProvider.OnFooterBarGUI()
    SettingsProvider.OnInspectorUpdate()
    SettingsProvider.Repaint()
    SettingsProvider.PopulateSearchKeywordsFromGUIContentProperties<T>()
    SettingsProvider.GetSearchKeywordsFromGUIContentProperties<T>()
    SettingsProvider.GetSearchKeywordsFromSerializedObject(SerializedObject)
    SettingsProvider.GetSearchKeywordsFromPath(string)
    SettingsProvider.label
    SettingsProvider.settingsPath
    SettingsProvider.scope
    SettingsProvider.keywords
    SettingsProvider.guiHandler
    SettingsProvider.titleBarGuiHandler
    SettingsProvider.footerBarGuiHandler
    SettingsProvider.activateHandler
    SettingsProvider.deactivateHandler
    SettingsProvider.hasSearchInterestHandler
    SettingsProvider.inspectorUpdateHandler
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Perception.GroundTruth
    Assembly: Unity.Perception.Editor.dll
    Syntax
    public class PerceptionSettingsProvider : SettingsProvider

    Methods

    CreateProvider()

    Creates the settings provider

    Declaration
    [SettingsProvider]
    public static SettingsProvider CreateProvider()
    Returns
    Type Description
    SettingsProvider

    The perception settings

    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 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.

    Overrides
    SettingsProvider.OnActivate(string, VisualElement)

    OnDeactivate()

    Use this function to implement a handler for when the user clicks on another setting or when the Settings window closes.

    Declaration
    public override void OnDeactivate()
    Overrides
    SettingsProvider.OnDeactivate()

    OnGUI(string)

    Use this function to draw the UI based on IMGUI. This assumes you haven't added any children to the rootElement passed to the OnActivate function.

    Declaration
    public override void OnGUI(string searchContext)
    Parameters
    Type Name Description
    string searchContext

    Search context for the Settings window. Used to show or hide relevant properties

    Overrides
    SettingsProvider.OnGUI(string)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)