Scripting / UI
InstructionSequenceLayout
Widget for InstructionSequence subclasses like Combo and Ping Pong. Extends InstructionLayout and implements IInstructionSequenceLayout to manage nested child instructions with dynamic height.
Properties & Fields
| Member | Type | Description |
|---|---|---|
childContainer | RectTransform | Parent transform that receives child InstructionLayout instances. |
Childrens | IReadOnlyList<INestedInstructionLayout> | All child layout widgets currently in the sequence. |
Methods
| Method | Description |
|---|---|
AddInstruction(Action action) | Drops a new child instruction into the sequence. Falls back to inserting after the sequence if it is full or if the action is a sequence type. |
RemoveInstruction(INestedInstructionLayout) | Removes the child layout and instruction, then recalculates the widget's height. |
Insert(int index, Action action) | Inserts a new child at the given index. Recalculates height and plays the add sound. |
ResetLayout() | Override — resets this widget and all children recursively. |