docs.unity3d.com
    Show / Hide Table of Contents

    Class GuiControlSelector

    Used the select which GUI controls are unmasked.

    Inheritance
    Object
    GuiControlSelector
    Namespace: Unity.Tutorials.Core.Editor
    Syntax
    public class GuiControlSelector : object

    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

    SelectorMode

    The used selector mode.

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023