Assets/_MolcaSDK/_VR/Scripts/Scenario/Steps/ValveStep.csBase: Step
Role
Wires to a Valve interaction via SceneObjectReference (or equivalent serialized reference pattern in your version). Completes when rotation reaches the configured target angle; optional lock management and feedback UI references.Related
Analog feedback UI may pair with valve training UI helpers.Code
On activate, resolvevalveInteractionRef → ValveInteraction.SubscribeToAngle(targetAngle, OnTargetAngleReached); callback calls Complete(). Optional AnalogFeedbackUI from feedbackUIRef; autoManageLock unlocks on activate and re-locks on deactivate/complete.
Troubleshooting
- No completion / null interaction error — Ensure
SceneObjectReferencepoints at the object with Valve interaction; wait for asyncResolveAsync(errors log after activation). - Target angle never hit — Valve interaction min/max clamp, locked state, or wrong
targetAnglevs handle rotation range. - Feedback UI stuck — Assign
feedbackUIRefor leave invalid to skip;AnalogFeedbackUImust implementSetup()/Show()as in SDK.
Unity Editor
ValveStep + SceneObjectReference to ValveInteraction.
