Skip to content

Commit cb69ab4

Browse files
mderzellefacebook-github-bot
authored andcommitted
Release for updated SDK 78.0.0
Summary: - Code changes for Unity 6 support - Remove stale scripts in SimultaneousHandsAndControllers sample - Rename **TableTop** semantic to **Tabletop** Reviewed By: markusscmeta Differential Revision: D81315442 fbshipit-source-id: f8c538012cc10b4152845312e10a4a4656712b4b
1 parent d6b862c commit cb69ab4

15 files changed

Lines changed: 23 additions & 29 deletions

File tree

Assets/Resources/ImmersiveDebuggerSettings.asset.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Resources/InputActions.asset.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/StarterSamples/Core/DebugUI/Scripts/DebugUIBuilder.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
* limitations under the License.
1919
*/
2020

21-
using System.Collections;
2221
using System.Collections.Generic;
2322
using Meta.XR.Samples;
2423
using UnityEngine;
@@ -111,7 +110,7 @@ public void Awake()
111110
instance = this;
112111
menuOffset = transform.position; // TODO: this is unpredictable/busted
113112
gameObject.SetActive(false);
114-
rig = FindObjectOfType<OVRCameraRig>();
113+
rig = FindFirstObjectByType<OVRCameraRig>();
115114
for (int i = 0; i < toEnable.Count; ++i)
116115
{
117116
toEnable[i].SetActive(false);
@@ -135,7 +134,7 @@ public void Awake()
135134
GameObject.Instantiate(uiHelpersToInstantiate);
136135
}
137136

138-
lp = FindObjectOfType<LaserPointer>();
137+
lp = FindFirstObjectByType<LaserPointer>();
139138
if (!lp)
140139
{
141140
Debug.LogError("Debug UI requires use of a LaserPointer and will not function without it. " +

Assets/StarterSamples/Core/DebugUI/Scripts/HandedInputSelector.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919
*/
2020

2121
using UnityEngine;
22-
using System.Collections;
2322
using UnityEngine.EventSystems;
24-
using UnityEngine.UI;
25-
using System;
2623
using Meta.XR.Samples;
2724

2825
[MetaCodeSample("StarterSample.Core-DebugUI")]
@@ -33,8 +30,8 @@ public class HandedInputSelector : MonoBehaviour
3330

3431
void Start()
3532
{
36-
m_CameraRig = FindObjectOfType<OVRCameraRig>();
37-
m_InputModule = FindObjectOfType<OVRInputModule>();
33+
m_CameraRig = FindFirstObjectByType<OVRCameraRig>();
34+
m_InputModule = FindFirstObjectByType<OVRInputModule>();
3835
}
3936

4037
void Update()

Assets/StarterSamples/Core/HandsInteraction/Scripts/InteractableToolsInputRouter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static InteractableToolsInputRouter Instance
4242
{
4343
if (_instance == null)
4444
{
45-
var instances = FindObjectsOfType<InteractableToolsInputRouter>();
45+
var instances = FindObjectsByType<InteractableToolsInputRouter>(FindObjectsSortMode.None);
4646
if (instances.Length > 0)
4747
{
4848
_instance = instances[0];

Assets/StarterSamples/Core/Locomotion/Scripts/LocomotionController.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
* limitations under the License.
1919
*/
2020

21-
using System;
2221
using UnityEngine;
23-
using System.Collections;
24-
using JetBrains.Annotations;
2522
using Meta.XR.Samples;
2623
using UnityEngine.Assertions;
2724
#if UNITY_EDITOR
@@ -58,7 +55,7 @@ void Start()
5855
//Assert.IsNotNull(PlayerController);
5956
if (CameraRig == null)
6057
{
61-
CameraRig = FindObjectOfType<OVRCameraRig>();
58+
CameraRig = FindFirstObjectByType<OVRCameraRig>();
6259
}
6360

6461
Assert.IsNotNull(CameraRig);

Assets/StarterSamples/Usage/HandsTrainExample/Scripts/HandsActiveChecker.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121

2222
using System.Collections;
23-
using System.Collections.Generic;
2423
using Meta.XR.Samples;
2524
using UnityEngine;
2625
using UnityEngine.Assertions;
@@ -61,7 +60,7 @@ private void Update()
6160

6261
private IEnumerator GetCenterEye()
6362
{
64-
if ((_cameraRig = FindObjectOfType<OVRCameraRig>()) != null)
63+
if ((_cameraRig = FindFirstObjectByType<OVRCameraRig>()) != null)
6564
{
6665
while (!_centerEye)
6766
{

Assets/StarterSamples/Usage/HandsTrainExample/Scripts/PanelHMDFollower.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class PanelHMDFollower : MonoBehaviour
4343

4444
private void Awake()
4545
{
46-
_cameraRig = FindObjectOfType<OVRCameraRig>();
46+
_cameraRig = FindFirstObjectByType<OVRCameraRig>();
4747
_panelInitialPosition = transform.position;
4848
}
4949

Assets/StarterSamples/Usage/Locomotion/Scripts/LocomotionSampleSupport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ private LocomotionTeleport TeleportController
4040

4141
public void Start()
4242
{
43-
lc = FindObjectOfType<LocomotionController>();
43+
lc = FindFirstObjectByType<LocomotionController>();
4444
DebugUIBuilder.instance.AddButton("Node Teleport w/ A", SetupNodeTeleport);
4545
DebugUIBuilder.instance.AddButton("Dual-stick teleport", SetupTwoStickTeleport);
4646
DebugUIBuilder.instance.AddButton("L Strafe R Teleport", SetupLeftStrafeRightTeleport);
4747
//DebugUIBuilder.instance.AddButton("R Turn L Teleport", SetupRightTurnLeftTeleport);
4848
DebugUIBuilder.instance.AddButton("Walk Only", SetupWalkOnly);
4949

5050
// This is just a quick hack-in, need a prefab-based way of setting this up easily.
51-
EventSystem eventSystem = FindObjectOfType<EventSystem>();
51+
EventSystem eventSystem = FindFirstObjectByType<EventSystem>();
5252
if (eventSystem == null)
5353
{
5454
Debug.LogError("Need EventSystem");

Assets/StarterSamples/Usage/OVROverlayCanvas.unity

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,10 @@ MonoBehaviour:
866866
m_Script: {fileID: 11500000, guid: ee10491ef6d5d1d49a270cf6b09bdc19, type: 3}
867867
m_Name:
868868
m_EditorClassIdentifier:
869-
rectTransform: {fileID: 0}
869+
_enableMipmapping: 0
870+
_dynamicResolution: 1
871+
_redrawResolutionThreshold: 2147483647
872+
rectTransform: {fileID: 314378549}
870873
maxTextureSize: 2048
871874
manualRedraw: 0
872875
renderInterval: 2
@@ -1622,7 +1625,7 @@ MonoBehaviour:
16221625
hideTimeoutPeriod: 0.1
16231626
dimOnHideRequest: 1
16241627
depthScaleMultiplier: 0.03
1625-
matchNormalOnPhysicsColliders: 0
1628+
matchNormalOnPhysicsColliders: 1
16261629
rayTransform: {fileID: 2144179061}
16271630
--- !u!4 &851230874
16281631
Transform:

0 commit comments

Comments
 (0)