Maze / Library /PackageCache /com.unity.visualscripting@1.8.0 /Runtime /VisualScripting.Flow /Framework /Control /Break.cs
| namespace Unity.VisualScripting | |
| { | |
| /// <summary> | |
| /// Stops the execution of the current loop. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| public class Break : Unit | |
| { | |
| /// <summary> | |
| /// The entry point for the break. | |
| /// </summary> | |
| [] | |
| [] | |
| public ControlInput enter { get; private set; } | |
| protected override void Definition() | |
| { | |
| enter = ControlInput(nameof(enter), Operation); | |
| } | |
| public ControlOutput Operation(Flow flow) | |
| { | |
| flow.BreakLoop(); | |
| return null; | |
| } | |
| } | |
| } | |