当前位置:网站首页>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 .
边栏推荐
- 基于rtklib源码进行片上移植的思路分享
- [算法] 剑指offer2 golang 面试题8:和大于或等于k的最短子数组
- Code example of MATLAB reading GNSS observation value o file
- [algorithm] sword finger offer2 golang interview question 7: 3 numbers with 0 in the array
- [untitled]
- Compilation principle: preprocessing of source program and design and implementation of lexical analysis program (including code)
- Fairygui character status Popup
- Role movement in the first person perspective
- 闇の連鎖(LCA+树上差分)
- There is no red exclamation mark after SVN update
猜你喜欢

Compilation principle: preprocessing of source program and design and implementation of lexical analysis program (including code)
![[Chongqing Guangdong education] Shandong University College Physics reference materials](/img/56/4ac44729c3e480a4f779d6a890363a.jpg)
[Chongqing Guangdong education] Shandong University College Physics reference materials

MySQL shutdown is slow

Theoretical derivation of support vector machine
![[算法] 剑指offer2 golang 面试题13:二维子矩阵的数字之和](/img/17/e7c9bfa867030af97eb66a7932c7e3.png)
[算法] 剑指offer2 golang 面试题13:二维子矩阵的数字之和
![[dry goods] cycle slip detection of suggestions to improve the fixed rate of RTK ambiguity](/img/9d/7284c1399964d3fb48886f12e4941c.jpg)
[dry goods] cycle slip detection of suggestions to improve the fixed rate of RTK ambiguity

Role movement in the first person perspective
![[algorithm] sword finger offer2 golang interview question 4: numbers that appear only once](/img/f7/23ffc81ec8e9161c15d863c1a67916.png)
[algorithm] sword finger offer2 golang interview question 4: numbers that appear only once
![[algorithm] sword finger offer2 golang interview question 12: the sum of the left and right sub arrays is equal](/img/11/ee0628a68542236fc641966579a31a.png)
[algorithm] sword finger offer2 golang interview question 12: the sum of the left and right sub arrays is equal
![[算法] 剑指offer2 golang 面试题4:只出现一次的数字](/img/f7/23ffc81ec8e9161c15d863c1a67916.png)
[算法] 剑指offer2 golang 面试题4:只出现一次的数字
随机推荐
Fairygui joystick
FairyGUI摇杆
Fabrication of fairygui simple Backpack
Mixed use of fairygui button dynamics
Meanings and differences of PV, UV, IP, VV, CV
Fabrication d'un sac à dos simple fairygui
[算法] 剑指offer2 golang 面试题12:左右两边子数组的和相等
Design and implementation of general interface open platform - (39) simple and crude implementation of API services
FairyGUI簡單背包的制作
Basic DOS commands
FairyGUI条子家族(滚动条,滑动条,进度条)
Containers and Devops: container based Devops delivery pipeline
错误:排序与角标越界
VLSM variable length subnet mask partition tips
[算法] 剑指offer2 golang 面试题2:二进制加法
【干货】提升RTK模糊度固定率的建议之周跳探测
Prove the time complexity of heap sorting
【rtklib】在rtk下使用抗差自适应卡尔曼滤波初步实践
记录:动态Web项目servlet访问数据库404错误之解决
[untitled]