Class GuiControlSelector
Used the select which GUI controls are unmasked.
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 |
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 |