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

Allow Variable Bounding Box Handle Sizes #598

Merged

Conversation

marlenaklein-msft
Copy link
Contributor

@marlenaklein-msft marlenaklein-msft commented Jan 2, 2024

Currently, all BoundsHandleInteractables are set to a global scale of 1x1x1 at runtime (and may then scale with the bounding box if MaintainGlobalSize is unselected). The initial scale of BoundsHandleInteractable is never taken into account when scaling the handles. This change sets the global scale to the max(x,y,z) of the initial BoundsHandleInteractable scale, instead of 1, so a user may now change the size of the handles in the prefab in order to make bounding boxes with larger or smaller handles. PR also makes changes to the BoundsControlRuntimeExample scene to give an example of this.

image

[3x3x3 Handles Scaled Prefab from Sample Scene]

Addresses #572

Spatial Manipulation package version number has already been bumped since last release, so no update is needed.

@marlenaklein-msft marlenaklein-msft changed the title Allow Variable Bounding Box Handle Scales Allow Variable Bounding Box Handle Sizes Jan 2, 2024
Copy link
Contributor

@AMollis AMollis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor name change request. Also can you please attach a screen shot of the new prefab you've added?

Thank you

@AMollis AMollis requested a review from a team January 2, 2024 17:43
@AMollis
Copy link
Contributor

AMollis commented Jan 2, 2024

@marlenaklein-msft , did you also check if the version numbers need updating? Can you please add a comment to the PR description stating you've verified the package versions are correct? Thank you

@marlenaklein-msft marlenaklein-msft merged commit 44440e0 into MixedRealityToolkit:main Jan 2, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants