Skip to content

Commit 6ef666f

Browse files
authored
Merge pull request #6914 from thalbern/user/bethalha/fix_doc
fixed broken docs and missing meta file
2 parents e1fef61 + b563dcb commit 6ef666f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Assets/MixedRealityToolkit.SDK/Experimental/Features/UX/BoundsControl/Visuals/ProximityEffect/IProximityEffectObjectProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using UnityEngine;
33

4-
namespace Microsoft.MixedReality.Toolkit.Experimental.UI
4+
namespace Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControl
55
{
66
/// <summary>
77
/// Interface for defining a proximity object provider used in <see cref="ProximityEffect" /> of <see cref="BoundsControl" />

Documentation/README_BoundingBox.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ bbox.RotationHandleSize = 0.016f;
6969
bbox.RotateHandleColliderPadding = 0.016f;
7070
```
7171

72-
### Example: Set minimum, maximum bounding box scale using TransformScaleHandler
72+
### Example: Set minimum, maximum bounding box scale using MinMaxScaleConstraint
7373

74-
To set the minimum and maximum scale, use the [`TransformScaleHandler`](xref:Microsoft.MixedReality.Toolkit.UI.TransformScaleHandler). You can also use TransformScaleHandler to set minimum and maximum scale for [`ManipulationHandler`](xref:Microsoft.MixedReality.Toolkit.UI.ManipulationHandler).
74+
To set the minimum and maximum scale, use the [`MinMaxScaleConstraint`](xref:Microsoft.MixedReality.Toolkit.UI.MinMaxScaleConstraint). You can also use MinMaxScaleConstraint to set minimum and maximum scale for [`ManipulationHandler`](xref:Microsoft.MixedReality.Toolkit.UI.ManipulationHandler).
7575

7676
```c#
7777
GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube);
7878
bbox = cube.AddComponent<BoundingBox>();
7979
// Important: BoundingBox creates a scale handler on start if one does not exist
8080
// do not use AddComponent, as that will create a duplicate handler that will not be used
81-
TransformScaleHandler scaleHandler = bbox.gameObject.GetComponent<TransformScaleHandler>();
82-
scaleHandler.ScaleMinimum = 1f;
83-
scaleHandler.ScaleMaximum = 2f;
81+
MinMaxScaleConstraint scaleConstraint = bbox.gameObject.GetComponent<MinMaxScaleConstraint>();
82+
scaleConstraint.ScaleMinimum = 1f;
83+
scaleConstraint.ScaleMaximum = 2f;
8484
```
8585

8686
## Example: Add bounding box around a game object
@@ -115,11 +115,11 @@ There are several options to activate the bounding box interface.
115115

116116
### Scale minimum
117117

118-
The minimum allowed scale. This property is deprecated and it is preferable to add a [`TransformScaleHandler`](https://github.com/Microsoft/MixedRealityToolkit-Unity/blob/mrtk_release/Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/TransformScaleHandler.cs) script. If this script is added, the minimum scale will be taken from it instead of from BoundingBox.
118+
The minimum allowed scale. This property is deprecated and it is preferable to add a [`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 BoundingBox.
119119
120120
### Scale maximum
121121

122-
The maximum allowed scale. This property is deprecated and it is preferable to add a [`TransformScaleHandler`](https://github.com/Microsoft/MixedRealityToolkit-Unity/blob/mrtk_release/Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/TransformScaleHandler.cs) script. If this script is added, the maximum scale will be taken from it instead of from BoundingBox.
122+
The maximum allowed scale. This property is deprecated and it is preferable to add a [`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 BoundingBox.
123123
124124
### Box display
125125

0 commit comments

Comments
 (0)