- Home /
Canvas vs OnGUI
Hi, I want to create a simple module(like timer) that has UI and some code. I noticed a lot of unity asset scrips in store draw their UI in OnGUI(). My question is, what is the more preferable way, to draw it in OnGUI() or use Canvas?
Answer by Huacanacha · Apr 02, 2015 at 12:36 AM
The new UI system, the one with Canvas, is far superior to the old system utilizing OnGUI(). The old system was not really appropriate to use in production titles.
Assets on the Asset Store use OnGUI() so much because it's been around much longer. Going forward pretty much everything will use the new UnityEngine.UI system.
Your answer
Follow this Question
Related Questions
GUI.DrawTexture doesn't obey drawing order in hierarchy? 0 Answers
rotating minimap compass according to character direction 1 Answer
GUI Placement Question. 1 Answer
GUI Not updating 1 Answer
Changing variables in real time. 2 Answers