At the moment I’m adding AdMob, which I also have some problems with, but I think it’s worth dealing with this problem first.
Console
I’ve been trying to add various packages to an empty Unity project for a while now, and every time I add them to the project, I get the same errors in the console. They don’t seem to affect anything, but I’m afraid that if I skip them, they will snowball in the middle of the development process.
Here is what is displayed in the console.
Instance of GridPaintingState couldn’t be created. The the script class needs to derive from ScriptableObject.
0x00007ff7d0d4229d (Unity) StackWalker::GetCurrentCallstack
0x00007ff7d0d47249 (Unity) StackWalker::ShowCallstack
0x00007ff7d1d133a1 (Unity) GetStacktrace
0x00007ff7d23d4c02 (Unity) DebugStringToFile
0x00007ff7d0bf72b4 (Unity) ManagedMonoBehaviourRef::IsManagedClassCompatible
0x00007ff7d0cddb29 (Unity) SerializableManagedRef::SetClass
0x00007ff7d0c35a6e (Unity) Scripting::CreateScriptableObjectWithType
0x00007ff7cfc59c5b (Unity) ScriptableObject_CUSTOM_CreateScriptableObjectInstanceFromType
0x000001e2c8682c9c (Mono JIT Code) (wrapper managed-to-native) UnityEngine.ScriptableObject:CreateScriptableObjectInstanceFromType (System.Type,bool)
0x000001e2c8682b03 (Mono JIT Code) UnityEngine.ScriptableObject:CreateInstance (System.Type)
0x000001e2c868299b (Mono JIT Code) UnityEngine.ScriptableObject:CreateInstance<T_REF> ()
0x000001e2c8679e5b (Mono JIT Code) UnityEditor.ScriptableSingleton1<T_REF>:CreateAndLoad () 0x000001e2c8679ae3 (Mono JIT Code) UnityEditor.ScriptableSingleton
1<T_REF>:get_instance ()
0x000001e2c867948b (Mono JIT Code) UnityEditor.Tilemaps.GridPaintingState:get_savingPalette () (at ./Library/PackageCache/[email protected]/Editor/GridPaintingState.cs:643)
0x000001e2c8678f23 (Mono JIT Code) UnityEditor.Tilemaps.GridPaintPaletteClipboard/PaletteAssetModificationProcessor:SavePalettesIfRequired (string[]) (at ./Library/PackageCache/[email protected]/Editor/GridPaintPaletteClipboard.cs:1523)
0x000001e2c8678bfb (Mono JIT Code) UnityEditor.Tilemaps.GridPaintPaletteClipboard/PaletteAssetModificationProcessor:OnWillSaveAssets (string[]) (at ./Library/PackageCache/[email protected]/Editor/GridPaintPaletteClipboard.cs:1517)
0x000001e2c8678e19 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_object_object (object,intptr,intptr,intptr)
0x00007ffbe320e0d4 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffbe314eb74 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffbe31557bf (mono-2.0-bdwgc) mono_runtime_try_invoke_array (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:5768)
0x00007ffbe308ced0 (mono-2.0-bdwgc) ves_icall_InternalInvoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/icall.c:4041)
0x00007ffbe30b16c1 (mono-2.0-bdwgc) ves_icall_InternalInvoke_raw (at C:/build/output/Unity-Technologies/mono/mono/metadata/icall-def.h:692)
0x000001e2c8678a32 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo:InternalInvoke (System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
0x000001e2c86751b3 (Mono JIT Code) System.Reflection.RuntimeMethodInfo:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x000001e2c8674c1f (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
0x000001e2c8666d83 (Mono JIT Code) UnityEditor.AssetModificationProcessorInternal:OnWillSaveAssets (string[],string[]&,string[]&,bool)
0x000001e2c8667a07 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_object_intptr&_intptr&_byte (object,intptr,intptr,intptr)
0x00007ffbe320e0d4 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffbe314eb74 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffbe314ed0c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff7d0c59724 (Unity) scripting_method_invoke
0x00007ff7d0c37944 (Unity) ScriptingInvocation::Invoke
0x00007ff7d0c32595 (Unity) ScriptingInvocation::Invoke
0x00007ff7d0d84271 (Unity) Scripting::UnityEditor::AssetModificationProcessorInternalProxy::OnWillSaveAssets
0x00007ff7d1ff0593 (Unity) AssetModificationCallbacks::ShouldSaveSingleFile
0x00007ff7d200a103 (Unity) WriteYamlString
0x00007ff7d200991f (Unity) WriteTextMetaFile
0x00007ff7d209baee (Unity) WriteImportSettingsIfDirtyV2
0x00007ff7d2090010 (Unity) RefreshInternalV2
0x00007ff7d2097e9f (Unity) StopAssetImportingV2Internal
0x00007ff7d20919ac (Unity) RefreshV2
0x00007ff7d2005f30 (Unity) AssetDatabase::Refresh
0x00007ff7d1768043 (Unity) ImportPackageAssets
0x00007ff7d1782903 (Unity) TickPackageImport
0x00007ff7d18a5d59 (Unity) Application::TickTimer
0x00007ff7d1d19cda (Unity) MainMessageLoop
0x00007ff7d1d1f540 (Unity) WinMain
0x00007ff7d3108bae (Unity) __scrt_common_main_seh
0x00007ffc66fe7344 (KERNEL32) BaseThreadInitThunk
0x00007ffc6781cc91 (ntdll) RtlUserThreadStart
Ruslan Titarenko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.