Skip to content

Commit 6830478

Browse files
committed
OnDisable fix
1 parent 8006dbb commit 6830478

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Packages/webxr-interactions/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Fixed
9+
- OnDisable in ControllerInteraction.
810

911
## [0.5.1] - 2020-12-26
1012
### Fixed

Packages/webxr-interactions/Runtime/Scripts/ControllerInteraction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private void OnEnable()
7474
controller.OnHandUpdate += OnHandUpdate;
7575
}
7676

77-
private void OnDisabled()
77+
private void OnDisable()
7878
{
7979
controller.OnControllerActive -= SetControllerVisible;
8080
controller.OnHandActive -= SetHandJointsVisible;

Packages/webxr/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Fixed
9+
- OnDisable in WebXRController.
810

911
## [0.5.1] - 2020-12-26
1012
### Fixed

Packages/webxr/Runtime/Scripts/WebXRController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ void OnEnable()
415415
#endif
416416
}
417417

418-
void OnDisabled()
418+
void OnDisable()
419419
{
420420
WebXRManager.OnControllerUpdate -= OnControllerUpdate;
421421
WebXRManager.OnHandUpdate -= OnHandUpdateInternal;

0 commit comments

Comments
 (0)