File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Packages/webxr/Runtime/XRPlugin Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
- using System ;
2
1
using System . Runtime . InteropServices ;
3
2
using AOT ;
4
3
using UnityEngine ;
@@ -39,19 +38,17 @@ public override void Start() { }
39
38
public override void Stop ( ) { }
40
39
public override void Destroy ( ) { }
41
40
}
41
+ #endif
42
42
43
43
[ RuntimeInitializeOnLoadMethod ( RuntimeInitializeLoadType . SubsystemRegistration ) ]
44
44
private static void RegisterDescriptor ( )
45
45
{
46
+ #if UNITY_XR_MANAGEMENT_4_3_1_OR_NEWER
46
47
SubsystemDescriptorStore . RegisterDescriptor ( new WebXRSubsystemDescriptor ( )
47
48
{
48
49
id = typeof ( WebXRSubsystem ) . FullName
49
50
} ) ;
50
- }
51
51
#else
52
- [ RuntimeInitializeOnLoadMethod ( RuntimeInitializeLoadType . SubsystemRegistration ) ]
53
- private static void RegisterDescriptor ( )
54
- {
55
52
var res = SubsystemRegistration . CreateDescriptor ( new WebXRSubsystemDescriptor ( )
56
53
{
57
54
id = typeof ( WebXRSubsystem ) . FullName ,
@@ -60,8 +57,8 @@ private static void RegisterDescriptor()
60
57
if ( res )
61
58
Debug . Log ( "Registered " + nameof ( WebXRSubsystemDescriptor ) ) ;
62
59
else Debug . Log ( "Failed registering " + nameof ( WebXRSubsystemDescriptor ) ) ;
63
- }
64
60
#endif
61
+ }
65
62
66
63
#if UNITY_XR_MANAGEMENT_4_3_1_OR_NEWER
67
64
protected override void OnStart ( )
You can’t perform that action at this time.
0 commit comments