You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/README_BoundingBox.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
The [`BoundingBox.cs`](https://github.com/Microsoft/MixedRealityToolkit-Unity/blob/mrtk_release/Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/BoundingBox/BoundingBox.cs) script provides basic functionality for transforming objects in mixed reality. A bounding box will show a cube around the hologram to indicate that it can be interacted with. Handles on the corners and edges of the cube allow scaling or rotating the object. The bounding box also reacts to user input. On HoloLens 2, for example, the bounding box responds to finger proximity, providing visual feedback to help perceive the distance from the object. All interactions and visuals can be easily customized.
6
6
7
-
For more information please see[Bounding Box and App Bar](https://docs.microsoft.com/windows/mixed-reality/app-bar-and-bounding-box) on Windows Dev Center.
7
+
For more information, see[Bounding box and App bar](https://docs.microsoft.com/windows/mixed-reality/app-bar-and-bounding-box) in the Windows Dev Center.
8
8
9
9
## Example scene
10
10
@@ -16,8 +16,8 @@ You can find examples of bounding box configurations in the `BoundingBoxExamples
16
16
17
17
1. Add Box Collider to an object
18
18
2. Assign `BoundingBox` script to an object
19
-
3. Configure options such as 'Activation' methods (see [Inspector properties](#inspector-properties) section below)
20
-
4. (Optional) Assign prefabs and materials for HoloLens 2 style bounding box (see [Handle styles](#handle-styles) section below)
19
+
3. Configure options, such as 'Activation' methods (see [Inspector properties](#inspector-properties) section below)
20
+
4. (Optional) Assign prefabs and materials for a HoloLens 2 style bounding box (see [Handle styles](#handle-styles) section below)
21
21
22
22
> [!NOTE]
23
23
> Use *Target Object* and *Bounds Override* field in the inspector to assign specific object and collider in the object with multiple child components.
@@ -50,7 +50,7 @@ You can find examples of bounding box configurations in the `BoundingBoxExamples
50
50
bbox.ShowRotationHandleForZ=false;
51
51
```
52
52
53
-
1. (Optional) Assignprefabsandmaterialsfor HoloLens 2 style bounding box. This still requires assignments through the inspector since the materials and prefabs should be dynamically loaded.
53
+
1. (Optional) Assignprefabsandmaterialsfora HoloLens 2 style bounding box. This still requires assignments through the inspector since the materials and prefabs should be dynamically loaded.
54
54
55
55
> [!NOTE]
56
56
> Using Unity's 'Resources' folder or [Shader.Find]( https://docs.unity3d.com/ScriptReference/Shader.Find.html) for dynamically loading shaders is not recommended since shader permutations may be missing at runtime.
@@ -115,11 +115,11 @@ There are several options to activate the bounding box interface.
115
115
116
116
### Scale minimum
117
117
118
-
Theminimumallowedscale. Thispropertyisdeprecatedanditispreferabletoadda [`MinMaxScaleConstraint`](https://github.com/Microsoft/MixedRealityToolkit-Unity/blob/mrtk_release/Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/MinMaxScaleConstraint.cs) script. If this script is added, the minimum scale will be taken from it instead of from bounding box.
118
+
Theminimumallowedscale. Thispropertyisdeprecatedanditispreferabletoadda [`MinMaxScaleConstraint`](https://github.com/Microsoft/MixedRealityToolkit-Unity/blob/mrtk_release/Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/MinMaxScaleConstraint.cs) script. If this script is added, the minimum scale will be taken from it instead of from the bounding box.
119
119
120
120
### Scale maximum
121
121
122
-
Themaximumallowedscale. Thispropertyisdeprecatedanditispreferabletoadda [`MinMaxScaleConstraint`](https://github.com/Microsoft/MixedRealityToolkit-Unity/blob/mrtk_release/Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/MinMaxScaleConstraint.cs) script. If this script is added, the maximum scale will be taken from it instead of from bounding box.
122
+
Themaximumallowedscale. Thispropertyisdeprecatedanditispreferabletoadda [`MinMaxScaleConstraint`](https://github.com/Microsoft/MixedRealityToolkit-Unity/blob/mrtk_release/Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/MinMaxScaleConstraint.cs) script. If this script is added, the maximum scale will be taken from it instead of from the bounding box.
123
123
124
124
### Box display
125
125
@@ -133,7 +133,7 @@ You can assign the material and prefab to override the handle style. If no handl
***FarScale**:Defaultscalevalueofthehandleassetwhenthehandsareoutoftherangeofboundingboxinteraction(distancedefinedaboveby'Handle Medium Proximity'. Use0tohidehandlebydefault)
177
-
***MediumScale**:Scalevalueofthehandleassetwhenthehandsarewithintherangeoftheboundingboxinteraction(distancedefinedaboveby'Handle Close Proximity'. Use1toshownormalsize)
178
-
***CloseScale**:Scalevalueofthehandleassetwhenthehandsarewithinthegrabinteraction(distancedefinedaboveby'Handle Close Proximity'. Use1.xtoshowbiggersize)
176
+
***FarScale**:Defaultscalevalueofthehandleassetwhenthehandsareoutofrangeoftheboundingboxinteraction(distancedefinedaboveby'Handle Medium Proximity'. Use0tohidehandlebydefault)
177
+
***MediumScale**:Scalevalueofthehandleassetwhenthehandsarewithinrangeoftheboundingboxinteraction(distancedefinedaboveby'Handle Close Proximity'. Use1toshownormalsize)
178
+
***CloseScale**:Scalevalueofthehandleassetwhenthehandsarewithinrangeofthegrabinteraction(distancedefinedaboveby'Handle Close Proximity'. Use1.xtoshowbiggersize)
179
179
180
180
## Making an object movable with manipulation handler
0 commit comments