Question by
lmstrato · Apr 16, 2018 at 12:58 AM ·
buildnullreferenceexceptionkeycodelog
Can't return KeyCode in build
I created my own input manager. I was using it in editor without problems. But when I built the client, it started to give Null Reference Exception.
input_Accept.keyboardKey = keyboard_Accept.GetComponent<KeycodeVisual>().keycode;
keyboard_Accept.GetComponent().keycode isn't null and it's working in editor.
Any helps?
Comment
Your answer
Follow this Question
Related Questions
Input Working in Editor but not in Build 0 Answers
Scripts working in Editor, but not in build 2 Answers
NullReferenceError in Build but not the Editor,NullReferenceException in Build but not Editor. 0 Answers
Unity Build nullReference, but editor sees through it! 1 Answer
Unity 2019.3.12f1 New Project Build NullReferenceException Causes only Background Color to Render 3 Answers