Exemplo n.º 1
0
        static void Register()
        {
            XREnvironmentProbeSubsystemCinfo environmentProbeSubsystemInfo = new XREnvironmentProbeSubsystemCinfo()
            {
                id = k_SubsystemId,
                implementationType         = typeof(ARKitEnvironmentProbeSubsystem),
                supportsManualPlacement    = true,
                supportsRemovalOfManual    = true,
                supportsAutomaticPlacement = true,
                supportsRemovalOfAutomatic = true,
                supportsEnvironmentTexture = true,
            };

            if (!XREnvironmentProbeSubsystem.Register(environmentProbeSubsystemInfo))
            {
                Debug.LogErrorFormat("Cannot register the {0} subsystem", k_SubsystemId);
            }
        }
Exemplo n.º 2
0
        static void Register()
        {
#if UNITY_IOS && !UNITY_EDITOR
            const string subsystemId = "ARKit-EnvironmentProbe";
            XREnvironmentProbeSubsystemCinfo environmentProbeSubsystemInfo = new XREnvironmentProbeSubsystemCinfo()
            {
                id = subsystemId,
                implementationType         = typeof(ARKitEnvironmentProbeSubsystem),
                supportsManualPlacement    = true,
                supportsRemovalOfManual    = true,
                supportsAutomaticPlacement = true,
                supportsRemovalOfAutomatic = true,
                supportsEnvironmentTexture = true,
            };

            if (!XREnvironmentProbeSubsystem.Register(environmentProbeSubsystemInfo))
            {
                Debug.LogErrorFormat("Cannot register the {0} subsystem", subsystemId);
            }
#endif
        }
        static void Register()
        {
            if (!Api.platformAndroid || !Api.loaderPresent)
                return;

            const string subsystemId = "ARCore-EnvironmentProbe";
            XREnvironmentProbeSubsystemCinfo environmentProbeSubsystemInfo = new XREnvironmentProbeSubsystemCinfo()
            {
                id = subsystemId,
                providerType = typeof(ARCoreEnvironmentProbeSubsystem.ARCoreProvider),
                subsystemTypeOverride = typeof(ARCoreEnvironmentProbeSubsystem),
                supportsManualPlacement = false,
                supportsRemovalOfManual = false,
                supportsAutomaticPlacement = true,
                supportsRemovalOfAutomatic = false,
                supportsEnvironmentTexture = false,
                supportsEnvironmentTextureHDR = true,
            };

            XREnvironmentProbeSubsystem.Register(environmentProbeSubsystemInfo);
        }
        static void Register()
        {
            if (!Api.AtLeast12_0())
            {
                return;
            }

            const string subsystemId = "ARKit-EnvironmentProbe";
            XREnvironmentProbeSubsystemCinfo environmentProbeSubsystemInfo = new XREnvironmentProbeSubsystemCinfo()
            {
                id                            = subsystemId,
                providerType                  = typeof(ARKitEnvironmentProbeSubsystem.ARKitProvider),
                subsystemTypeOverride         = typeof(ARKitEnvironmentProbeSubsystem),
                supportsManualPlacement       = true,
                supportsRemovalOfManual       = true,
                supportsAutomaticPlacement    = true,
                supportsRemovalOfAutomatic    = true,
                supportsEnvironmentTexture    = true,
                supportsEnvironmentTextureHDR = Api.AtLeast13_0(),
            };

            XREnvironmentProbeSubsystem.Register(environmentProbeSubsystemInfo);
        }