ReviveXR
1 month agoStart Member
Getting Infinite Error in the Console from Meta SDK script in Non-Playmode.
How to get rid of this?
UnityException: CreateScriptableObjectInstanceFromType is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'OVRSyntheticHandsBlockData'.
See "Script Serialization" page in the Unity Manual for further details.UnityException: CreateScriptableObjectInstanceFromType is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'OVRSyntheticHandsBlockData'.
See "Script Serialization" page in the Unity Manual for further details.
UnityEngine.ScriptableObject.CreateScriptableObjectInstanceFromType (System.Type type, System.Boolean applyDefaultsAndReset) (at <98fbc9de20ae47d9bb2559ab79ec6643>:0)
UnityEngine.ScriptableObject.CreateInstance (System.Type type) (at <98fbc9de20ae47d9bb2559ab79ec6643>:0)
Oculus.VR.Editor.OVRPluginInfo.IsInsidePackageDistribution () (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRPluginInfo.cs:77)
OVRProjectConfig.ComputeOculusProjectAssetPath (System.String assetName) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectConfig.cs:246)
OVRProjectSetupSettings.GetOculusProjectConfigAssetPath (System.Boolean refresh) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/OVRProjectSetupSettings.cs:126)
OVRProjectSetupSettings.GetProjectConfig (System.Boolean refresh, System.Boolean create) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/OVRProjectSetupSettings.cs:137)
OVRProjectSetupSettings+SettingBool.<.ctor>b__0_0 () (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/OVRProjectSetupSettings.cs:33)
Meta.XR.Editor.Settings.CustomSetting`1[T].get_Value () (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/Utils/Settings/Setting.cs:160)
OVRConfigurationTask.IsIgnored (UnityEditor.BuildTargetGroup buildTargetGroup) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/Tasks/OVRConfigurationTask.cs:205)
OVRConfigurationTaskRegistry.RegisterToBuildValidator (UnityEditor.BuildTargetGroup targetGroup, OVRConfigurationTask task) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/Tasks/OVRConfigurationTaskRegistry.cs:76)
OVRConfigurationTaskRegistry.RegisterToBuildValidator (OVRConfigurationTask task) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/Tasks/OVRConfigurationTaskRegistry.cs:65)
OVRConfigurationTaskRegistry.AddTask (OVRConfigurationTask task) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/Tasks/OVRConfigurationTaskRegistry.cs:52)
OVRProjectSetup.RegisterTask (OVRConfigurationTask task) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/OVRProjectSetup.cs:265)
OVRProjectSetup.RegisterTask (OVRProjectSetup+TaskGroup group, System.Func`2[T,TResult] isDone, UnityEditor.BuildTargetGroup platform, OVRProjectSetup+TaskTags tags, System.Action`1[T] fix, OVRProjectSetup+TaskLevel level, System.Func`2[T,TResult] conditionalLevel, System.String message, System.Func`2[T,TResult] conditionalMessage, System.String fixMessage, System.Func`2[T,TResult] conditionalFixMessage, System.String url, System.Func`2[T,TResult] conditionalUrl, UPSTGuidedSetup manualSetup, System.Func`2[T,TResult] conditionalManualSetup, System.Boolean validity, System.Func`2[T,TResult] conditionalValidity, System.Boolean fixAutomatic) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/OVRProjectSetup.cs:299)
Oculus.Interaction.OVR.Editor.ISDKBlocksRules..cctor () (at ./Library/PackageCache/com.meta.xr.sdk.interaction.ovr@a99b76803a6e/Editor/Blocks/BlocksRules.cs:34)
Rethrow as TypeInitializationException: The type initializer for 'Oculus.Interaction.OVR.Editor.ISDKBlocksRules' threw an exception.
Oculus.Interaction.OVR.Editor.ISDKBlocksRules+<>c.<.cctor>b__0_2 (UnityEditor.BuildTargetGroup _) (at ./Library/PackageCache/com.meta.xr.sdk.interaction.ovr@a99b76803a6e/Editor/Blocks/BlocksRules.cs:38)
OptionalLambdaTypeWithLambda`2[TLambdaArgumentType,TValueType].GetValue (TLambdaArgumentType arg) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/Utils/OptionalLambdaType.cs:96)
OptionalLambdaTypeWithCachedLambda`2[TLambdaArgumentType,TValueType].GetValue (TLambdaArgumentType arg) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/Utils/OptionalLambdaType.cs:116)
OVRConfigurationTaskProcessor.<PrepareTasks>b__36_2 (OVRConfigurationTask task) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/Tasks/Processors/OVRConfigurationTaskProcessor.cs:93)
System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].ToList () (at <7af235693e284c0383dc0d38a50ab8f2>:0)
System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <7af235693e284c0383dc0d38a50ab8f2>:0)
OVRConfigurationTaskProcessor.PrepareTasks () (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/Tasks/Processors/OVRConfigurationTaskProcessor.cs:95)
OVRConfigurationTaskUpdater.PrepareTasks () (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/Tasks/Processors/OVRConfigurationTaskUpdater.cs:60)
OVRConfigurationTaskProcessor.Start () (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/Tasks/Processors/OVRConfigurationTaskProcessor.cs:110)
OVRConfigurationTaskProcessorQueue.Update () (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Editor/OVRProjectSetup/Tasks/Processors/OVRConfigurationTaskProcessorQueue.cs:129)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <e926e9c7db684472928e12ac2693beec>:0)
