Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Packages/com.unity.inputsystem/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ however, it has to be formatted properly to pass verification tests.

## [Unreleased] - yyyy-mm-dd

### Fixed
- Fixed memory leak when the OnScreenStick component was destroyed [ISXB-1070](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1070). Contribution by [LukeUnityDev](https://github.com/LukeUnityDev).

### Changed
- Renamed editor Resources directories to PackageResources to fix package validation warnings.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ private void Start()
image.alphaHitTestMinimumThreshold = 0.5f;
}

private void OnDestroy()
{
if (m_UseIsolatedInputActions)
{
m_PointerDownAction.started -= OnPointerDown;
m_PointerDownAction.canceled -= OnPointerUp;
}
}

private void BeginInteraction(Vector2 pointerPosition, Camera uiCamera)
{
var canvasRectTransform = UGUIOnScreenControlUtils.GetCanvasRectTransform(transform);
Expand Down