Skip to content

Commit 036b323

Browse files
committed
fix(example): prevent menu cube from detaching on activation
The example scene `019_ControllerInteractingWithPointer` has a menu cube that is displayed when the app menu button is pressed. However, due to some previous changes, the cube has it's parent reset due to the `LoadPreviousState` method defaulting the parent to null. The solution is to ensure `SaveCurrentState` is called so it always knows about it's parent.
1 parent 123b73c commit 036b323

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/SteamVR_Unity_Toolkit/Examples/Resources/Scripts/Menu_Container_Object_Colors.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ protected override void Start()
1515
{
1616
base.Start();
1717
SetSelectedColor(Color.red);
18+
SaveCurrentState();
1819
}
1920
}

0 commit comments

Comments
 (0)