Unity builds FGUI initial project


1. Create a new FGUI project

Download FairyGUI from the official website

https://fairygui.com/download

insert image description here

After downloading, unzip and open the exe file to use the editor

insert image description here

After selecting the project location and project name, create it

insert image description here

It should be noted here that the components that need to be controlled by code in Unity need to be renamed, and the default name starting with n cannot be used,
and the resources that need to be used in Unity need to be set to export

2. Create a new corresponding Unity project

Add FairyGUI in Asset Store and import it into Unity

insert image description here

3. Use in Unity (two methods, both methods need to export resources in the FGUI project to the Unity resource file before using Unity)

method one

1. Create a UIPanel of Fairy GUI in the Hierarchy window

insert image description here

2. Click on the Package name to select the package and components to be displayed

insert image description here

Method Two

1. Create a script file, load it during Awake, and mount it in the game object

insert image description here


Summarize

Unity builds FGUI initial project

Guess you like

Origin blog.csdn.net/qq_51603875/article/details/130590237