当前位置:网站首页>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 .
边栏推荐
- C programming exercise
- FairyGUI循环列表
- [算法] 剑指offer2 golang 面试题12:左右两边子数组的和相等
- Excel导入,导出功能实现
- GNSS定位精度指标计算
- Special palindromes of daily practice of Blue Bridge Cup
- 【rtklib】在rtk下使用抗差自适应卡尔曼滤波初步实践
- Liste des boucles de l'interface graphique de défaillance
- [算法] 剑指offer2 golang 面试题13:二维子矩阵的数字之和
- Role movement in the first person perspective
猜你喜欢

微信小程序开发心得

Detailed explanation of balanced binary tree is easy to understand

【GNSS数据处理】赫尔默特(helmert)方差分量估计解析及代码实现

FairyGUI循環列錶
![[algorithm] sword finger offer2 golang interview question 5: maximum product of word length](/img/e0/cea31070d6365eb57013cdead4a175.png)
[algorithm] sword finger offer2 golang interview question 5: maximum product of word length

rtklib单点定位spp使用抗差估计遇到的问题及解决

基本Dos命令
![[untitled]](/img/b1/9a2bebebb24132a405fc4e7d854e51.png)
[untitled]
![[算法] 剑指offer2 golang 面试题2:二进制加法](/img/c2/6f6c3bd4d70252ba73addad6a3a9c1.png)
[算法] 剑指offer2 golang 面试题2:二进制加法
![[algorithm] sword finger offer2 golang interview question 13: sum of numbers of two-dimensional submatrix](/img/17/e7c9bfa867030af97eb66a7932c7e3.png)
[algorithm] sword finger offer2 golang interview question 13: sum of numbers of two-dimensional submatrix
随机推荐
InnoDB dirty page refresh mechanism checkpoint in MySQL
(core focus of software engineering review) Chapter V detailed design exercises
On March 15, the official version of go 1.18 was released to learn about the latest features and usage
MySQL performance tuning - dirty page refresh
PR 2021 quick start tutorial, first understanding the Premiere Pro working interface
[algorithm] sword finger offer2 golang interview question 4: numbers that appear only once
错误: 找不到符号
Realization of the code for calculating the mean square error of GPS Height Fitting
[Yu Yue education] guide business reference materials of Wuxi Vocational and Technical College of Commerce
Rt-ppp test using rtknavi
GNSS定位精度指标计算
3月15号 Go 1.18 正式版发布 了解最新特色以及使用方法
Mysql database reports an error: row size too large (> 8126) Changing some columns to TEXT or BLOB or using ROW_ FORMAT=DY
异常:IOException:Stream Closed
Introduction to the daily practice column of the Blue Bridge Cup
Database table splitting strategy
(the first set of course design) 1-4 message passing interface (100 points) (simulation: thread)
C code implementation of robust estimation in rtklib's pntpos function (standard single point positioning spp)
VLSM variable length subnet mask partition tips
记录:newInstance()过时的代替方法