当前位置:网站首页>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 .
边栏推荐
- Derivation of logistic regression theory
- Comparative analysis of the execution efficiency of MySQL 5.7 statistical table records
- GNSS定位精度指标计算
- KF UD decomposition pseudo code implementation advanced [2]
- Particle system for introduction to unity3d Foundation (attribute introduction + case production of flame particle system)
- 错误: 找不到符号
- [algorithm] sword finger offer2 golang interview question 10: subarray with sum K
- (the first set of course design) sub task 1-5 317 (100 points) (dijkstra: heavy edge self loop)
- Teach you to release a DeNO module hand in hand
- Compile GDAL source code with nmake (win10, vs2022)
猜你喜欢
Mysql database reports an error: row size too large (> 8126) Changing some columns to TEXT or BLOB or using ROW_ FORMAT=DY
Unity3d makes the registration login interface and realizes the scene jump
[algorithm] sword finger offer2 golang interview question 12: the sum of the left and right sub arrays is equal
闇の連鎖(LCA+树上差分)
The master of double non planning left the real estate company and became a programmer with an annual salary of 25W. There are too many life choices at the age of 25
C code implementation of robust estimation in rtklib's pntpos function (standard single point positioning spp)
Problems and solutions of robust estimation in rtklib single point location spp
Implementation of Excel import and export functions
[algorithm] sword finger offer2 golang interview question 10: subarray with sum K
FairyGUI按钮动效的混用
随机推荐
Realization of the code for calculating the mean square error of GPS Height Fitting
Mysql database index
(the first set of course design) 1-4 message passing interface (100 points) (simulation: thread)
Fairygui character status Popup
MySQL error warning: a long semaphore wait
[algorithm] sword finger offer2 golang interview question 10: subarray with sum K
FGUI工程打包发布&导入Unity&将UI显示出来的方式
Detailed explanation of balanced binary tree is easy to understand
[算法] 劍指offer2 golang 面試題2:二進制加法
Unity scene jump and exit
[GNSS data processing] Helmert variance component estimation analysis and code implementation
平衡二叉树详解 通俗易懂
[algorithm] sword finger offer2 golang interview question 7: 3 numbers with 0 in the array
Office prompts that your license is not genuine pop-up box solution
[算法] 剑指offer2 golang 面试题12:左右两边子数组的和相等
Fairygui joystick
C code implementation of robust estimation in rtklib's pntpos function (standard single point positioning spp)
【GNSS】抗差估计(稳健估计)原理及程序实现
(core focus of software engineering review) Chapter V detailed design exercises
[算法] 剑指offer2 golang 面试题9:乘积小于k的子数组