当前位置:网站首页>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 .
边栏推荐
- Meanings and differences of PV, UV, IP, VV, CV
- 抗差估计在rtklib的pntpos函数(标准单点定位spp)中的c代码实现
- [GNSS data processing] Helmert variance component estimation analysis and code implementation
- 【无标题】
- It has been solved by personal practice: MySQL row size too large (> 8126) Changing some columns to TEXT or BLOB or using ROW_ FORMAT
- 【RTKLIB 2.4.3 b34 】版本更新简介一
- [算法] 劍指offer2 golang 面試題2:二進制加法
- Affichage du changement de valeur du Buff de gain de l'interface graphique de défaillance
- 记录:Navicat Premium初次无法连接数据库MySQL之解决
- 地球围绕太阳转
猜你喜欢

记录:初次cmd启动MySQL拒接访问之解决

In 2020, the average salary of IT industry exceeded 170000, ranking first
![[untitled]](/img/b1/9a2bebebb24132a405fc4e7d854e51.png)
[untitled]

2022国赛Re1 baby_tree
![[algorithm] sword finger offer2 golang interview question 10: subarray with sum K](/img/63/7422489d09a64ec9f0e79378761bf1.png)
[algorithm] sword finger offer2 golang interview question 10: subarray with sum K

Liste des boucles de l'interface graphique de défaillance

Unity3D制作注册登录界面,并实现场景跳转
![[算法] 剑指offer2 golang 面试题5:单词长度的最大乘积](/img/e0/cea31070d6365eb57013cdead4a175.png)
[算法] 剑指offer2 golang 面试题5:单词长度的最大乘积

Problems and solutions of robust estimation in rtklib single point location spp

There is no red exclamation mark after SVN update
随机推荐
Idea problem record
C code implementation of robust estimation in rtklib's pntpos function (standard single point positioning spp)
[rtklib] preliminary practice of using robust adaptive Kalman filter under RTK
[untitled]
记录:Navicat Premium初次无法连接数据库MySQL之解决
RTKLIB: demo5 b34f. 1 vs b33
Detailed explanation of balanced binary tree is easy to understand
MySQL error warning: a long semaphore wait
The earth revolves around the sun
[rtklib 2.4.3 B34] version update introduction I
NovAtel 板卡OEM617D配置步骤记录
Containers and Devops: container based Devops delivery pipeline
[algorithm] sword finger offer2 golang interview question 4: numbers that appear only once
In 2020, the average salary of IT industry exceeded 170000, ranking first
[algorithm] sword finger offer2 golang interview question 13: sum of numbers of two-dimensional submatrix
[算法] 劍指offer2 golang 面試題2:二進制加法
堆排序【手写小根堆】
FairyGUI按钮动效的混用
Fabrication of fairygui simple Backpack
Compile GDAL source code with nmake (win10, vs2022)