docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, July 8, 2021