Question by
Simonwan · Sep 01, 2017 at 05:38 AM ·
compiler error
compiler error appears and I cannot enter the playmode whatever what I did
static public void BeginContents (bool minimalistic)
{
if (!minimalistic)
{
mEndHorizontal = true;
GUILayout.BeginHorizontal();
EditorGUILayout.BeginHorizontal("AS TextArea", GUILayout.MinHeight(10f));
}
else
{
mEndHorizontal = false;
EditorGUILayout.BeginHorizontal(GUILayout.MinHeight(10f));
GUILayout.Space(10f);
}
GUILayout.BeginVertical();
GUILayout.Space(2f);
}
compiler error : Unable to find style 'AS TextArea' in skin 'LightSkin' Repaint
Do anyone ever encounter this compiler error?I was trying to update the Label.text using chinese in NGUI in my script.
Thanks everyone for help
Comment
Answer by ersingulbahar · Dec 19, 2019 at 09:04 PM
You can try this:
if UNITY_4_7 || UNITY_5_5 || UNITY_5_6
EditorGUILayout.BeginHorizontal("AS TextArea", GUILayout.MinHeight(10f));
else
EditorGUILayout.BeginHorizontal("TextArea", GUILayout.MinHeight(10f));
endif
Your answer
Follow this Question
Related Questions
Bizarre compile errors in Unity while Visual Studio will build project successfully 0 Answers
Project file could not be loaded - Root element is missing from MonoDevelop 0 Answers
It works great on editor, but I need it to work on my build. (UnityEditor.TransformUtils) 3 Answers
Unable to load project - specified pathname not found compilation error 0 Answers
CS8025 Parsing Error 0 Answers