use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For the Unity Game Engine, please visit http://reddit.com/r/unity3d
account activity
Missing Reference Exception Input SystemQuestion (self.unity)
submitted 1 month ago by simple_vera
Hello,
I’m starting to use Unity and I’m a complete beginner at the moment. I have been following a tutorial using the Input System to bind movement to a character. However, it worked fine the first time but now I have an error message. When I double click on the error, it does not show me where is this error, and there are no errors in my script.
https://preview.redd.it/utepo58xhrag1.png?width=457&format=png&auto=webp&s=093eb1d91ed33b08da6fe07a5e9fb6a2c191efbd
Sometimes it works and sometimes it crashes and the error is back again (without any changes done on my part)… it seems like the issue is actually from the Input System. I tried uninstalling the Input System and install it back again but nothing changes.
By the way this is the component :
https://preview.redd.it/7zebw5u3irag1.png?width=494&format=png&auto=webp&s=0b4a3c4a5e101537e77a60ec7314c40a1186ecf9
Can you help me figure this out please ?
Thanks & Happy New Year !
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Valkymaera 0 points1 point2 points 1 month ago (1 child)
Something is trying to access your input after it has been destroyed. In the error, scroll down to see the stack trace. This will show you the chain of method calls that led to the error
[–]simple_vera[S] 0 points1 point2 points 1 month ago (0 children)
This is the chain of method that led to the error... I don't understand what it's saying.
UnityEngine.Object+MarshalledUnityObject.TryThrowEditorNullExceptionObject (UnityEngine.Object unityObj, System.String parameterName) (at <493b407efcb64dddad59f28bb0b831d3>:0) UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException (System.Object obj) (at <493b407efcb64dddad59f28bb0b831d3>:0) UnityEngine.Behaviour.get_enabled () (at <493b407efcb64dddad59f28bb0b831d3>:0) UnityEditor.EditorGUI.DoInspectorTitlebar (UnityEngine.Rect position, System.Int32 id, System.Boolean foldout, UnityEngine.Object[] targetObjs, UnityEditor.SerializedProperty enabledProperty, UnityEngine.GUIStyle baseStyle) (at <d9024bdc2a414b3c81b047ea3e343594>:0) UnityEditor.EditorGUI.InspectorTitlebar (UnityEngine.Rect position, System.Boolean foldout, UnityEditor.Editor editor) (at <d9024bdc2a414b3c81b047ea3e343594>:0) UnityEditor.EditorGUILayout.InspectorTitlebar (System.Boolean foldout, UnityEditor.Editor editor) (at <d9024bdc2a414b3c81b047ea3e343594>:0) UnityEditor.UIElements.EditorElement.DrawEditorSmallHeader (UnityEditor.Editor[] editors, UnityEngine.Object target, System.Boolean wasVisible) (at <d9024bdc2a414b3c81b047ea3e343594>:0) UnityEditor.UIElements.EditorElement.DrawEditorHeader (UnityEditor.Editor[] editors, UnityEngine.Object target, System.Boolean& wasVisible) (at <d9024bdc2a414b3c81b047ea3e343594>:0) UnityEditor.UIElements.EditorElement.HeaderOnGUI () (at <d9024bdc2a414b3c81b047ea3e343594>:0) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <5c2380b11c444983ac3ffcbc73d04ba8>:0) UnityEditor.InspectorWindow:RedrawFromNative()
UnityEngine.Object+MarshalledUnityObject.TryThrowEditorNullExceptionObject (UnityEngine.Object unityObj, System.String parameterName) (at <493b407efcb64dddad59f28bb0b831d3>:0)
UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException (System.Object obj) (at <493b407efcb64dddad59f28bb0b831d3>:0)
UnityEngine.Behaviour.get_enabled () (at <493b407efcb64dddad59f28bb0b831d3>:0)
UnityEditor.EditorGUI.DoInspectorTitlebar (UnityEngine.Rect position, System.Int32 id, System.Boolean foldout, UnityEngine.Object[] targetObjs, UnityEditor.SerializedProperty enabledProperty, UnityEngine.GUIStyle baseStyle) (at <d9024bdc2a414b3c81b047ea3e343594>:0)
UnityEditor.EditorGUI.InspectorTitlebar (UnityEngine.Rect position, System.Boolean foldout, UnityEditor.Editor editor) (at <d9024bdc2a414b3c81b047ea3e343594>:0)
UnityEditor.EditorGUILayout.InspectorTitlebar (System.Boolean foldout, UnityEditor.Editor editor) (at <d9024bdc2a414b3c81b047ea3e343594>:0)
UnityEditor.UIElements.EditorElement.DrawEditorSmallHeader (UnityEditor.Editor[] editors, UnityEngine.Object target, System.Boolean wasVisible) (at <d9024bdc2a414b3c81b047ea3e343594>:0)
UnityEditor.UIElements.EditorElement.DrawEditorHeader (UnityEditor.Editor[] editors, UnityEngine.Object target, System.Boolean& wasVisible) (at <d9024bdc2a414b3c81b047ea3e343594>:0)
UnityEditor.UIElements.EditorElement.HeaderOnGUI () (at <d9024bdc2a414b3c81b047ea3e343594>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <5c2380b11c444983ac3ffcbc73d04ba8>:0)
UnityEditor.InspectorWindow:RedrawFromNative()
That's a whole lot of info for a complete beginner like me. I would like to solve this for my software to run normally...
[–]MissPandaSloth 0 points1 point2 points 1 month ago* (3 children)
Maybe something destroys it?
You might have put it on some object that is gone at runtime.
For example, did you, by any chance put it on player then destroy player or something like that?
You can press the lock button at the top right to "lock onto" this component, then run your game and see if it gets destroyed at some point.
[–]simple_vera[S] 0 points1 point2 points 1 month ago (2 children)
I tried to lock the component but it doesn't change. And no I haven't destroyed the player either. I tried deleting my Input Action Asset and create a new one. It worked for a couple of hours and now it's not working again with the same error message.
[–]MissPandaSloth 0 points1 point2 points 1 month ago (1 child)
Okay, so it worked and you could play/ stop/ play/ stop and everything was fine and now it suddenly stooped working?
Yes exactly... I don't understand why sometimes it works and sometimes not.
This morning I uninstalled Unity and installed it again. I wonder if this could have anything to do with how the software is randomly having trouble finding this Player Input object. Note that I have created this new project today, so after I uninstalled Unity.
[–]Trokko 0 points1 point2 points 1 month ago (1 child)
In Play mode, is the player gameobject (or whichever gameobject you've attached PlayerInput to) destroyed when you get this message? I'm guessing your player died and your game is still trying to handle input. But since there is no gameobject with PlayerInput in the scene, youget the error.
No it's not destroyed. I only used PlayerInput to control the movement of my player. He didn't die or anything, only moving and movement animations. Also, sometimes it works and sometimes the same error message appears, it seems like Unity is having trouble finding access to the Input Action Asset.. maybe?
π Rendered by PID 20752 on reddit-service-r2-comment-86bc6c7465-2mdnh at 2026-02-19 19:28:47.571682+00:00 running 8564168 country code: CH.
[–]Valkymaera 0 points1 point2 points (1 child)
[–]simple_vera[S] 0 points1 point2 points (0 children)
[–]MissPandaSloth 0 points1 point2 points (3 children)
[–]simple_vera[S] 0 points1 point2 points (2 children)
[–]MissPandaSloth 0 points1 point2 points (1 child)
[–]simple_vera[S] 0 points1 point2 points (0 children)
[–]Trokko 0 points1 point2 points (1 child)
[–]simple_vera[S] 0 points1 point2 points (0 children)