- Home /
The variable m_Font of 'GUISkin' doesn't exist anymore
Hi, i got a error here while i was trying to edit a GUI.Textfield in game, and dont know how to fix it, i know it says "You probably need to reassign the m_Font variable of the 'GUISkin' script in the inspector." but what does that mean? this is the error:
MissingReferenceException: The variable m_Font of 'GUISkin' doesn't exist anymore.
You probably need to reassign the m_Font variable of the 'GUISkin' script in the inspector.
UnityEngine.GUI.DoTextField (Rect position, Int32 id, UnityEngine.GUIContent content, Boolean multiline, Int32 maxLength, UnityEngine.GUIStyle style) (at C:/BuildAgent/work/cac08d8a5e25d4cb/Runtime/ExportGenerated/Editor/GUI.cs:642)
Answer by TrickyHandz · Oct 07, 2013 at 03:13 PM
The error means that the value of the variable m_Font has become null and has no valid value. Several situations can lead to this:
The variable value was never assigned in the inspector.
The variable value was cleared from the inspector
The variable was declared but never assigned in code
The variable was assigned a null value I'm code
i dont have any font in my script, i have only GUIStyle, do you know how i can solve this error?
Honestly, I would probably have to see the project or one that replicates the issue in order to figure out what the cause was and how to fix it.
Can you control my computer via $$anonymous$$mviewer and give a try?
Your answer
Follow this Question
Related Questions
The variable m_Font of 'GUISkin' doesn't exist anymore. 0 Answers
GUI textfield duplicate text 0 Answers
JavaScript OnGUI GuiSkins aren't working, multiple scripts 1 Answer
null reference woe 1 Answer