docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GuiControlSelector

    Used the select which GUI controls are unmasked.

    Inheritance
    object
    GuiControlSelector
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Tutorials.Core.Editor
    Assembly: Unity.Tutorials.Core.Editor.dll
    Syntax
    [Serializable]
    public class GuiControlSelector

    Properties

    ControlName

    Applicable if Mode.NamedControl used.

    Declaration
    public string ControlName { get; set; }
    Property Value
    Type Description
    string

    GuiContent

    Applicable if Mode.GuiContent used.

    Declaration
    public GUIContent GuiContent { get; set; }
    Property Value
    Type Description
    GUIContent

    GuiStyleName

    Applicable if Mode.GuiStyleName used.

    Declaration
    public string GuiStyleName { get; set; }
    Property Value
    Type Description
    string

    ObjectReference

    A reference to a Unity Object of which name will be matched against the text in UI elements. Applicable if Mode.ObjectReference used.

    Declaration
    public ObjectReference ObjectReference { get; set; }
    Property Value
    Type Description
    ObjectReference
    Remarks

    In order for this to work for assets, the asset must have a short name, i.e., the name cannot be visible in the UI in shortened form, e.g. "A longer...".

    PropertyPath

    Applicable if Mode.Property used.

    Declaration
    public string PropertyPath { get; set; }
    Property Value
    Type Description
    string

    SelectorMatchType

    The used match type in case of the selector matches multiple UI elements.

    Declaration
    public GuiControlSelector.MatchType SelectorMatchType { get; set; }
    Property Value
    Type Description
    GuiControlSelector.MatchType

    SelectorMode

    The mode by which the UI element is chosen.

    Declaration
    public GuiControlSelector.Mode SelectorMode { get; set; }
    Property Value
    Type Description
    GuiControlSelector.Mode

    TargetType

    Applicable if Mode.Property used.

    Declaration
    public Type TargetType { get; set; }
    Property Value
    Type Description
    Type

    VisualElementClassName

    Unity style sheet class name. Applicable if Mode.VisualElement used.

    Declaration
    public string VisualElementClassName { get; set; }
    Property Value
    Type Description
    string

    VisualElementName

    The name of the element. Applicable if Mode.VisualElement used.

    Declaration
    public string VisualElementName { get; set; }
    Property Value
    Type Description
    string

    VisualElementTypeName

    The fully qualified C# class/type name of the element. Applicable if Mode.VisualElement used.

    Declaration
    public string VisualElementTypeName { get; set; }
    Property Value
    Type Description
    string
    In This Article
    Back to top
    Copyright © 2025 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)