IInstructionSequenceLayout

UI widget that renders a nested instruction list in the player's editor panel. Keeps the visual widget tree in sync with the underlying InstructionSequence model.

Properties

MemberTypeDescription
gameObjectGameObjectRoot GameObject of this sequence layout widget.
ChildrensIReadOnlyList<INestedInstructionLayout>All child instruction widgets currently in the sequence.
CountintNumber of child widgets.
lastSiblingINestedInstructionLayoutThe last child widget, or null if the sequence is empty.

Methods

MethodDescription
AddInstruction(Action action)Creates and appends a new instruction widget from an action callback.
AddInstruction(PlayerInstruction instruction, Action action)Appends a widget for an already-created instruction.
Insert(int index, Action action)Inserts a new instruction widget at the given index.
RemoveInstruction(INestedInstructionLayout instruction)Removes a child widget and its associated instruction.
GetChild(int index)Returns the child widget at the given index.

INestedInstructionLayout

Represents a single instruction card nested inside an IInstructionSequenceLayout. Bridges the visual widget and the underlying PlayerInstruction it displays.

Properties

MemberTypeDescription
gameObjectGameObjectRoot GameObject of this instruction widget.
instructionPlayerInstructionThe instruction this widget represents.
containerIInstructionSequenceLayoutThe parent sequence layout that owns this widget.

Methods

MethodDescription
ResetLayout()Resyncs the visual state to match the current instruction data.
ℹ️