Skip to content

Commit 6af64ff

Browse files
added pointer inspector to make things look professional. Fixed scroll action assignment
1 parent 3635e12 commit 6af64ff

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
using Microsoft.MixedReality.Toolkit.SDK.UX.Pointers;
5+
using UnityEditor;
6+
7+
namespace Microsoft.MixedReality.Toolkit.SDK.Inspectors.UX.Pointers
8+
{
9+
[CustomEditor(typeof(MousePointer))]
10+
public class MousePointerInspector : BaseControllerPointerInspector
11+
{
12+
protected override void OnEnable()
13+
{
14+
DrawBasePointerActions = false;
15+
base.OnEnable();
16+
}
17+
}
18+
}

Assets/MixedRealityToolkit-SDK/Inspectors/UX/Pointers/MousePointerInspector.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/MixedRealityToolkit-SDK/Profiles/DefaultMixedRealityControllerMappingProfile.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ MonoBehaviour:
5959
axisType: 4
6060
inputType: 50
6161
inputAction:
62-
id: 8
62+
id: 10
6363
description: Scroll
6464
axisConstraint: 4
6565
keyCode: 0

Assets/MixedRealityToolkit-SDK/Profiles/DefaultMixedRealityInputActionsProfile.asset

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ MonoBehaviour:
3939
- id: 9
4040
description: Manipulate Action
4141
axisConstraint: 0
42+
- id: 10
43+
description: Scroll
44+
axisConstraint: 4

0 commit comments

Comments
 (0)