Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HoverOffsetYScale on AppBar doesn't do anything #2962

Closed
BenWoodford opened this issue Oct 24, 2018 · 4 comments
Closed

HoverOffsetYScale on AppBar doesn't do anything #2962

BenWoodford opened this issue Oct 24, 2018 · 4 comments
Labels
Legacy (HoloToolkit) Issues specific to the HoloToolkit product UX Controls - General

Comments

@BenWoodford
Copy link

Does this affect the legacy HoloToolkit (master) or the Mixed Reality Toolkit (mrtk_release)?
HoloToolkit

Describe the bug
It's not referenced anywhere in the code it seems, at least not in 2017.4.2.0. Changing it has no effect on the AppBar

To Reproduce
Change the HoverOffsetYScale on the AppBar - the example should work for this I assume.

Expected behavior
Not sure what is meant to happen with it but I assume the Y coordinate on the bar should change to an extent?

Actual behavior
Nothing

@StephenHodgson StephenHodgson added Legacy (HoloToolkit) Issues specific to the HoloToolkit product UX Controls - General Investigate labels Oct 24, 2018
@Yoyozilla
Copy link
Contributor

Closing older HTK issue as we are no longer actively working on HTK.

Please upgrade to MRTK V2 for the latest fixes.

@FlorianJa
Copy link
Contributor

In MRTK RC2.1 the bug is still there. Please check https://github.com/microsoft/MixedRealityToolkit-Unity/blob/mrtk_release/Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/AppBar/AppBar.cs
You will see HoverOffsetYScale is not used in the code.

@kwmeyer
Copy link

kwmeyer commented Aug 8, 2019

I just ran into this issue myself, and can confirm that it is still present in MRTK RC2.1. HoverOffsetYScale is exposed as a property, but is not actually used anywhere in AppBar.cs to determine the position of the AppBar. It appears that this was introduced during the rework done in #2212.

Please consider reopening this issue.

@kwmeyer
Copy link

kwmeyer commented Aug 16, 2019

I couldn't resist playing around with this a bit, and I found a solution that at least works for me. Not sure how it worked in HTK before, but here's what I did. In AppBar.cs, add this after the line where the final position is calculated:

finalPosition += (helper.GetFaceCentroid(followingFaceIndex) - helper.GetFaceBottomCentroid(followingFaceIndex)).normalized * hoverOffsetYScale;

This basically finds the upwards direction along the following face, scales it by the aforementioned property, then adds it to the app bar's final position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Legacy (HoloToolkit) Issues specific to the HoloToolkit product UX Controls - General
Projects
None yet
Development

No branches or pull requests

5 participants