当前位置:网站首页>Fgui project packaging and Publishing & importing unity & the way to display the UI
Fgui project packaging and Publishing & importing unity & the way to display the UI
2022-07-06 12:57:00 【SQ Liu】
FGUI Project package release & Import Unity& take UI Show the way
One 、 Package and publish project
Two 、Unity Running display in UI Two ways
Preface : If there is no previous Download FairyGUI, You can download it in the resource store and import it .
(1) Manually add , No code required
terms of settlement :
(2) Code control display
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using FairyGUI;
public class FGUITest001 : MonoBehaviour
{
void Start()
{
GRoot.inst.SetContentScaleFactor(800, 600); // Initialize and set the appropriate proportion ( The resolution is set )
UIPackage.AddPackage("FGUI/Package1"); // Load the packaged project
GComponent component = UIPackage.CreateObject("Package1", "Component1").asCom;
// Load the corresponding component adopt .asCom( or as GComponent) Type conversion converts it to GComponent Component type
GRoot.inst.AddChild(component); // Instantiate the current component to UI Panel(GRoot It's actually UI Panel) Below
}
}
thus , Complete .
边栏推荐
- KF UD分解之UD分解基础篇【1】
- [algorithm] sword finger offer2 golang interview question 2: binary addition
- There is no red exclamation mark after SVN update
- (the first set of course design) sub task 1-5 317 (100 points) (dijkstra: heavy edge self loop)
- Sharing ideas of on-chip transplantation based on rtklib source code
- [rtklib 2.4.3 B34] version update introduction I
- KF UD分解之伪代码实现进阶篇【2】
- FairyGUI人物状态弹窗
- Office prompts that your license is not genuine pop-up box solution
- isEmpty 和 isBlank 的用法区别
猜你喜欢
Unity scene jump and exit
FairyGUI摇杆
《软件测试》习题答案:第一章
What are the advantages of using SQL in Excel VBA
The port is occupied because the service is not shut down normally
Halcon knowledge: gray_ Tophat transform and bottom cap transform
[algorithm] sword finger offer2 golang interview question 9: subarray with product less than k
Wechat applet development experience
Lock wait timeout exceeded try restarting transaction
[algorithme] swordfinger offer2 golang question d'entrevue 2: addition binaire
随机推荐
NovAtel 板卡OEM617D配置步骤记录
Rt-ppp test using rtknavi
Code example of MATLAB reading GNSS observation value o file
1041 be unique (20 points (s)) (hash: find the first number that occurs once)
记录:下一不小心写了个递归
[算法] 剑指offer2 golang 面试题10:和为k的子数组
Unity3D制作注册登录界面,并实现场景跳转
[算法] 剑指offer2 golang 面试题2:二进制加法
【干货】提升RTK模糊度固定率的建议之周跳探测
基于rtklib源码进行片上移植的思路分享
Combination of fairygui check box and progress bar
Acwing-116 pilot brother
Fairygui gain buff value change display
The earth revolves around the sun
Fairygui character status Popup
In 2020, the average salary of IT industry exceeded 170000, ranking first
[algorithm] sword finger offer2 golang interview question 12: the sum of the left and right sub arrays is equal
[GNSS data processing] Helmert variance component estimation analysis and code implementation
Special palindromes of daily practice of Blue Bridge Cup
FairyGUI复选框与进度条的组合使用