Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Couldn't find a key match for _gv.Inventory

$
0
0
I have a static class that looks like this.... public static class _gv { public static GameObject Player { get { return GameObject.FindObjectWithTag("Player"); } } public static Inventory Inventory { get { return Player.GetComponent(); } } } Whenever I refer to the _gv.Inventory from any method or try to access it I get this error... **Couldn't find a key match for _gv.Inventory. Is it possible you typed it wrong or forgot to setup your defaults after making changes?** And, The full log is... Couldn't find a key match for _gv.Inventory. Is it possible you typed it wrong or forgot to setup your defaults after making changes? 0x00000001411A417B (Unity) StackWalker::GetCurrentCallstack 0x00000001411A6B0F (Unity) StackWalker::ShowCallstack 0x0000000141081340 (Unity) GetStacktrace 0x0000000140596833 (Unity) DebugStringToFile 0x0000000140597011 (Unity) DebugStringToFile 0x00000001412DDB62 (Unity) DebugLogHandler_CUSTOM_Internal_Log 0x0000000034B9EA70 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,string,UnityEngine.Object) 0x0000000034B9E6EA (Mono JIT Code) [DebugLogHandler.cs:10] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) 0x0000000034B9DF9A (Mono JIT Code) [Logger.cs:48] UnityEngine.Logger:Log (UnityEngine.LogType,object) 0x00000000362B5783 (Mono JIT Code) [DebugBindings.gen.cs:124] UnityEngine.Debug:LogError (object) 0x00000000362892BC (Mono JIT Code) [cInput.cs:850] cInput:_GetKeyDown (int,string) 0x0000000036288E96 (Mono JIT Code) [cInput.cs:858] cInput:GetKeyDown (string) 0x00000000362B4CC0 (Mono JIT Code) [HeadsUpDisplayScript.cs:160] HeadsUpDisplayScript:SwitchInv () 0x00000000362B1AE9 (Mono JIT Code) [Inventory.cs:619] Inventory:Update () 0x0000000034B625A4 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) 0x00007FFA65C7434A (mono-2.0-bdwgc) [mini-runtime.c:2616] mono_jit_runtime_invoke 0x00007FFA65E78A97 (mono-2.0-bdwgc) [object.c:2853] do_runtime_invoke 0x00007FFA65E8149F (mono-2.0-bdwgc) [object.c:2905] mono_runtime_invoke 0x000000014091C14C (Unity) scripting_method_invoke 0x0000000140910AF3 (Unity) ScriptingInvocation::Invoke 0x00000001408D1C91 (Unity) MonoBehaviour::CallMethodIfAvailable 0x00000001408DD2DF (Unity) MonoBehaviour::CallUpdateMethod 0x00000001403A0EC6 (Unity) BaseBehaviourManager::CommonUpdate 0x00000001403A1BAF (Unity) BehaviourManager::Update 0x00000001405DA593 (Unity) `InitPlayerLoopCallbacks'::`38'::UpdateScriptRunBehaviourUpdateRegistrator::Forward 0x00000001405D8CE6 (Unity) PlayerLoop 0x00000001410AE122 (Unity) PlayerLoopController::UpdateScene 0x00000001410AF69F (Unity) PlayerLoopController::UpdateSceneIfNeeded 0x00000001410B8E5C (Unity) Application::TickTimer 0x00000001412C1889 (Unity) MainMessageLoop 0x00000001412C3144 (Unity) WinMain 0x0000000141DDACD8 (Unity) __tmainCRTStartup 0x00007FFA92008102 (KERNEL32) BaseThreadInitThunk 0x00007FFA9476C5B4 (ntdll) RtlUserThreadStart

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>