Legacy Documentation: Version 5.2
Rich Text
GUI Basics (Legacy)

Legacy GUI Scripting Guide

The legacy GUI system has been replaced with the new UI System. The legacy GUI is still functional but is not recommended to use in your game or application. The legacy GUI system is still used in Unity’s own interface and can be used to create custom editor GUI.

The legacy GUI allows you to create a wide variety of functional GUIs using code. Rather than creating a GUI object, manually positioning it, and then writing a script that handles its functionality, you can do everything at once with just a few lines of code. The code produces GUI controls that are instantiated, positioned and handled with a single function call.

This section explains how to use GUI both in your game and in extensions to the Unity editor.

Rich Text
GUI Basics (Legacy)
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961