Class GuiControlSelector
Used the select which GUI controls are unmasked.
Inherited Members
Namespace: Unity.Tutorials.Core.Editor
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 |