Skip to content

Commit 5b27655

Browse files
authored
Deprecate AdjustTrackingOrigin (#1110)
This functionality has been deprecated by the XR Origin component. This property has never had an effect in MRTK3 and will be removed in a future release.
1 parent c7314e7 commit 5b27655

4 files changed

Lines changed: 14 additions & 17 deletions

File tree

org.mixedrealitytoolkit.core/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
88

99
* Fixed "The type MixedReality.Toolkit.Core MixedReality.Toolkit.Experimental.BubbleChildHoverEvents/TrickleChildHoverEvents/BubbleChildSelectEvents/TrickleChildSelectEvents is being serialized by [SerializeReference], but is missing the [Serializable] attribute." on Unity 6.3. [PR #1107](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/1107)
1010

11+
## Deprecated
12+
13+
* Deprecated `AdjustTrackingOrigin` on `CameraSettings`. This functionality has been deprecated by the XR Origin component. This property has never had an effect in MRTK3 and will be removed in a future release. [PR #1110](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/1110)
14+
1115
## [3.3.0] - 2025-11-12
1216

1317
### Changed
@@ -45,8 +49,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4549
* Added IsProximityHovered property of type TimedFlag to detect when a button starts being hovered or on interactor proximity and when it stops being hovered or on proximity of any interactor. [PR #611](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/611)
4650
* Adding ProximityHover events (Entered & Exited) to PressableButton class. [PR #611](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/611)
4751

48-
4952
### Fixed
5053

5154
* Fixed support for UPM package publishing in the Unity Asset Store. [PR #519](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/519)
52-
* Fix warning and event triggered on disabled StatefulInteractable after changing speech settings [PR #591](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/591) [PR #608](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/608)
55+
* Fix warning and event triggered on disabled StatefulInteractable after changing speech settings [PR #591](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/591) [PR #608](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/608)

org.mixedrealitytoolkit.core/Camera/CameraSettings.cs

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public CameraClearFlags ClearMode
7676
/// The default <see cref="Color"/> to apply to <see cref="ClearColor"/> if on an opaque XR headset.
7777
/// </summary>
7878
public static readonly Color DefaultClearColorOpaque = Color.black;
79-
79+
8080
/// <summary>
8181
/// The default <see cref="Color"/> to apply to <see cref="ClearColor"/> if on a transparent XR headset.
8282
/// </summary>
@@ -122,7 +122,7 @@ public float NearPlaneDistance
122122
/// The default value to apply to <see cref="FarPlaneDistance"/> if on an opaque XR headset.
123123
/// </summary>
124124
public static readonly float DefaultFarPlaneDistanceOpaque = 1000f;
125-
125+
126126
/// <summary>
127127
/// The default value to apply to <see cref="FarPlaneDistance"/> if on a transparent XR headset.
128128
/// </summary>
@@ -141,18 +141,11 @@ public float FarPlaneDistance
141141
set => farPlaneDistance = value;
142142
}
143143

144-
[SerializeField]
145-
[Tooltip("Should the tracking origin be adjusted base on camera type?")]
146-
private bool adjustTrackingOrigin = true;
147-
148144
/// <summary>
149145
/// Should the tracking origin be adjusted based on camera type?
150146
/// </summary>
151-
public bool AdjustTrackingOrigin
152-
{
153-
get => adjustTrackingOrigin;
154-
set => adjustTrackingOrigin = value;
155-
}
147+
[Obsolete("This functionality has been deprecated by the XR Origin component. This property has never had an effect in MRTK3 and will be removed in a future release.")]
148+
public bool AdjustTrackingOrigin { get; set; }
156149

157150
[SerializeField]
158151
[Tooltip("Should the quality level be adjusted based on camera type?")]
@@ -174,7 +167,7 @@ public bool AdjustQualityLevel
174167

175168
/// <summary>
176169
/// The default value to apply to <see cref="QualityLevel"/> if on a transparent XR headset.
177-
/// </summary>
170+
/// </summary>
178171
public static readonly int DefaultQualityLevelTransparent = 0; // Very Low
179172

180173
[SerializeField]

org.mixedrealitytoolkit.input/Assets/Prefabs/MRTK XR Rig.prefab

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ MonoBehaviour:
220220
m_Action: Main Camera - TPD - Rotation
221221
m_Flags: 0
222222
m_Flags: 0
223-
m_HasMigratedActions: 1
224223
--- !u!114 &404949538145338360
225224
MonoBehaviour:
226225
m_ObjectHideFlags: 0
@@ -238,15 +237,13 @@ MonoBehaviour:
238237
clearColor: {r: 0, g: 0, b: 0, a: 0}
239238
nearPlaneDistance: 0.1
240239
farPlaneDistance: 1000
241-
adjustTrackingOrigin: 1
242240
adjustQualityLevel: 1
243241
qualityLevel: 5
244242
transparentDisplay:
245243
clearMode: 2
246244
clearColor: {r: 0, g: 0, b: 0, a: 0}
247245
nearPlaneDistance: 0.1
248246
farPlaneDistance: 50
249-
adjustTrackingOrigin: 1
250247
adjustQualityLevel: 1
251248
qualityLevel: 0
252249
--- !u!1 &2351505566903569413

org.mixedrealitytoolkit.input/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
44

55
## Unreleased
66

7+
### Changed
8+
9+
* Reserialized MRTK XR Rig prefab to remove stale serialized fields. [PR #1110](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/1110)
10+
711
### Fixed
812

913
* Fixed "leaked managed shell" issue in `InteractionModeManager`. [PR #1096](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/1096)

0 commit comments

Comments
 (0)