Assets/_MolcaSDK/_VR/Scripts/Scenario/Steps/ValveActionStep.csBase: Step
Role
Completes when everyToolValveAction in valveActions fires onToolOperationComplete. On Initialize, sockets are disabled; on activate, each is enabled, listener registered, and ResetToolOperation() called. When all report done, Complete() is invoked after completionDelay.
Code
SetTargetAngle exists on the step for per-socket targets — see full ValveActionStep.cs.)
Troubleshooting
- Stuck — not all sockets complete — Ensure every
ToolValveActionis in the array,onToolOperationCompletefires exactly once per intended op, and sockets are not leftenabledfrom a prior run (deactivate should clear listeners). - Empty array error — Assign
valveActionsor placeToolValveActioncomponents on/under the same GameObject for auto-discovery. - Delayed completion — Reduce
completionDelayif the UX feels laggy after the last socket.
Unity Editor
ValveActionStep Inspector — compare fields to ValveStep.
