Skip to content

Commit 316fe8d

Browse files
authored
Merge pull request #4872 from thalbern/user/bethalha/plane_button
fixed initial offset for pushable button part
2 parents f3a9791 + 98a1263 commit 316fe8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/PressableButtons/PressableButton.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private void Start()
213213
Debug.LogWarning("PressableButton will not work if game object layer is set to 'Ignore Raycast'.");
214214
}
215215

216-
initialOffsetMovingVisuals = PushSpaceSourceTransform.localPosition;
216+
initialOffsetMovingVisuals = PushSpaceSourceTransform.position - PushSpaceSourceTransform.parent.position;
217217
}
218218

219219
void OnDisable()

0 commit comments

Comments
 (0)