- Home /
Question by
$$anonymous$$ · Nov 17, 2011 at 03:32 PM ·
guionguiexceptiongui.begingroup
GUI Error - Method not found: 'GUI.BeginGroup'.
Hey Community, I've got a "Method not found: 'GUI.BeginGroup'." Exception in this code section:
function OnGUI(){
GUI.BeginGroup(Rect(Screen.width - 205, Screen.height - 105, 200, 100));
GUI.DrawTexture(Rect(0,0,200,100), GUIAmmunitionBackground);
GUI.EndGroup();
}
So how can I fix it?
Greetings, TheCSharpFreak (wich forgot his login name/pasword :P)
Comment
Best Answer
Answer by syclamoth · Nov 17, 2011 at 03:34 PM
Did you... by any chance name your script 'GUI.js'? Because that would be a problem. See if explicity using 'UnityEngine.GUI.whatever' works.
Thank you! I was trying to figure this out for half an hour.
Your answer
![](https://koobas.hobune.stream/wayback/20220613045053im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Same GUI script showing up in different places 0 Answers
gui content dynamic change with screen size 1 Answer
Where to put the GUI script ? 3 Answers
Free Gui solutions 2 Answers