Skip to content

Commit 13e57bd

Browse files
authored
Merge pull request #3 from RimuruDev/SupportOculusQuest
Added support oculus quest
2 parents 87a8737 + c3ab92d commit 13e57bd

File tree

4 files changed

+19
-23
lines changed

4 files changed

+19
-23
lines changed

RimuruDev.UnitySkipSplashScreen.asmdef

Lines changed: 0 additions & 14 deletions
This file was deleted.

RimuruDev.UnitySkipSplashScreen.asmdef.meta

Lines changed: 0 additions & 7 deletions
This file was deleted.

UnitySkipSplashScreen.cs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,25 @@ private static void Application_focusChanged(bool obj)
3535
}
3636

3737
#else
38-
private static void AsyncSkip() =>
38+
private static void AsyncSkip()
39+
{
40+
#if UNITY_ANDROID || UNITY_IOS || UNITY_STANDALONE || UNITY_WSA
41+
#if UNITY_XR
42+
if (UnityEngine.XR.Management.XRGeneralSettings.Instance.Manager.isInitializationComplete)
43+
{
44+
SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
45+
}
46+
else
47+
{
48+
UnityEngine.XR.Management.XRGeneralSettings.Instance.Manager.InitializeLoader();
49+
UnityEngine.XR.Management.XRGeneralSettings.Instance.Manager.StartSubsystems();
50+
SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
51+
}
52+
#else
3953
SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
4054
#endif
55+
#endif
56+
}
57+
#endif
4158
}
4259
#endif

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.rimurudev.unity-skip-splashscreen",
33
"displayName": "Unity Skip Splash",
4-
"version": "1.0.0",
4+
"version": "1.0.3",
55
"unity": "2019.4",
66
"description": "A script to skip the Unity logo splash.",
77
"keywords": [

0 commit comments

Comments
 (0)