Class SwitchOnString
Branches flow by switching over a string.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Control")]
[UnitTitle("Switch On String")]
[UnitShortTitle("Switch")]
[UnitSubtitle("On String")]
[UnitOrder(4)]
public class SwitchOnString : SwitchUnit<string>, IBranchUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
ignoreCase
Declaration
[Serialize]
[Inspectable]
[UnitHeaderInspectable("Ignore Case")]
[InspectorToggleLeft]
public bool ignoreCase { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Matches(String, String)
Declaration
protected override bool Matches(string a, string b)
Parameters
Type | Name | Description |
---|---|---|
String | a | |
String | b |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Unity.VisualScripting.SwitchUnit<System.String>.Matches(System.String, System.String)