Skip to main content
File: Assets/_MolcaSDK/_VR/Scripts/Scenario/Steps/KnobStep.cs
Base: Step

When to use

Use Knob Step when a VR training scenario needs this specific interaction as a step in a sequence. Configure entirely in the Inspector — no code required.

Role

Same pattern as ValveStep but targets Knob interaction.

Code

Same lifecycle as ValveStep: resolve knobInteractionRef, SubscribeToAngle, OnTargetAngleReachedComplete(); optional AnalogFeedbackUI and autoManageLock.

Troubleshooting

  • Mirror of valve issues — See ValveStep (reference resolution, angle range, lock). For snap knobs, confirm discrete positions align with targetAngle (Knob interaction).

Unity Editor

KnobStep Inspector with knob interaction reference.

KnobStep in Unity Inspector

KnobStep Inspector