-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Added AppBar support for BoundsControl and fixed configuration bugs #7096
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
Added AppBar support for BoundsControl and fixed configuration bugs #7096
Conversation
added missing public setters to configure bounds control in code
…haven't been created yet finished migration handler (added folder generation and check, added appbar migration) made app bar use generic target that implements new IBoundsTargetProvider so we can use both boundscontrol and boundingbox with it deprecated boundingbox specific methods in boundingboxhelper / added generic variants of methods
…zation' into user/bethalha/bc_examples
…so changed type to monobehaviour to prepare for upcoming support of bounds control
…setting of dirty flag - else serialization stomps over our code change
added test for far interaction app bar manipulation
adjusted comment in play mode tests
|
/azp run |
1 similar comment
|
/azp run |
|
/azp run stabilization_pr |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
david-c-kline
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a couple of small comments / questions
Assets/MixedRealityToolkit.SDK/Experimental/Features/UX/BoundsControl/BoundsControl.cs
Outdated
Show resolved
Hide resolved
Assets/MixedRealityToolkit.SDK/Experimental/Features/UX/BoundsControl/BoundsControl.cs
Outdated
Show resolved
Hide resolved
Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/BoundingBox/BoundingBox.cs
Show resolved
Hide resolved
Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/BoundingBox/IBoundsTargetProvider.cs
Outdated
Show resolved
Hide resolved
Assets/MixedRealityToolkit.Tests/EditModeTests/Experimental/BoundsControlTests.cs
Outdated
Show resolved
Hide resolved
Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/BoundingBox/IBoundsTargetProvider.cs
Outdated
Show resolved
Hide resolved
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
…added missing braces and fixed some whitespace issues
| } | ||
|
|
||
|
|
||
| private bool IsInitialized() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't we have this as a private property?
Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/BoundingBox/BoundingBox.cs
Show resolved
Hide resolved
Assets/MixedRealityToolkit.Tests/EditModeTests/Experimental/BoundsControlTests.cs
Outdated
Show resolved
Hide resolved
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Overview
BoundsControl can now be used with AppBar:
-- changed BoundingBox utility to be more generic -> now works on collider bounds instead of bounding box
-- deprecated old bounding box specific methods in BoundingBoxUtility
-- changed target of AppBar to work on any component implementing the new IBoundsTargetProvider interface (and made BoundingBox and BoundsControl implement it)
fixed nullptr access when modifying certain Bounds Control configuration properties in code
fixed handling of show wireframe flag
added property get / set to allow for code configured bounding box / bounds control
Added tests:
-- Playmode test for manipulating a bounds control via AppBar
-- Editmode test that makes sure all bounds control configuration values can be set without anything blowing up
Changes