当前位置:网站首页>Unity making plug-ins
Unity making plug-ins
2022-07-06 20:13:00 【LiPing122335】
using System.Collections;
using System.Collections.Generic;
using UnityEditor;// Namespace
using UnityEngine;
using UnityEngine.UI;
// Inherit Editor
public class TextEdiot : Editor {
[MenuItem("ChaJian/WangNeng")]
// Write a static method
public static void Get()
{
// GameObject cube = Resources.Load<GameObject>("UI/Cube");
// GameObject go = Instantiate(cube);
// go.name = "Cube";
// Debug.Log(" Plug in made successfully ");
Transform canvas1 = Resources.Load<Transform>("UI/Canvas");
Transform kl = Instantiate(canvas1);
kl.name = "Canvas";
Image image = Resources.Load<Image>("UI/Image");
Image m = Instantiate(image);
//Transform canvas = GameObject.Find("Canvas").transform;
m.transform.SetParent(kl, false);
m.name = "Image";
Transform EventSystem1 = Resources.Load<Transform>("UI/EventSystem");
Transform ev = Instantiate(EventSystem1);
ev.name = "EventSystem";
}
}
边栏推荐
- mod_wsgi + pymssql通路SQL Server座
- 22-07-05 upload of qiniu cloud storage pictures and user avatars
- HDU 1026 search pruning problem within the labyrinth of Ignatius and the prince I
- 枚举根据参数获取值
- 数据的同步为每个站点创建触发器同步表
- 语音识别(ASR)论文优选:全球最大的中英混合开源数据TALCS: An Open-Source Mandarin-English Code-Switching Corpus and a Speech
- HDU 1026 Ignatius and the Princess I 迷宫范围内的搜索剪枝问题
- 【计网】第三章 数据链路层(4)局域网、以太网、无线局域网、VLAN
- Appx code signing Guide
- 【计网】第三章 数据链路层(3)信道划分介质访问控制
猜你喜欢

报错分析~csdn反弹shell报错

OceanBase社区版之OBD方式部署方式单机安装

Standardized QCI characteristics
腾讯字节等大厂面试真题汇总,网易架构师深入讲解Android开发

语音识别(ASR)论文优选:全球最大的中英混合开源数据TALCS: An Open-Source Mandarin-English Code-Switching Corpus and a Speech

Redisson bug analysis

系统与应用监控的思路和方法

It's enough to read this article to analyze the principle in depth

Node. Js: express + MySQL realizes registration, login and identity authentication

数字三角形模型 AcWing 1018. 最低通行费
随机推荐
数字三角形模型 AcWing 1018. 最低通行费
beegfs高可用模式探讨
转让malloc()该功能后,发生了什么事内核?附malloc()和free()实现源
RT-Thread 组件 FinSH 使用时遇到的问题
Logstash expressway entrance
B-杰哥的树(状压树形dp)
Jupyter launch didn't respond after Anaconda was installed & the web page was opened and ran without execution
How to handle the timeout of golang
Crawler (14) - scrape redis distributed crawler (1) | detailed explanation
深度学习分类网络 -- ZFNet
JVM_ Common [interview questions]
【计网】第三章 数据链路层(4)局域网、以太网、无线局域网、VLAN
Problems encountered in using RT thread component fish
22-07-05 upload of qiniu cloud storage pictures and user avatars
Cesium 点击绘制圆形(动态绘制圆形)
系统与应用监控的思路和方法
Finally, there is no need to change a line of code! Shardingsphere native driver comes out
Special topic of rotor position estimation of permanent magnet synchronous motor -- fundamental wave model and rotor position angle
Standardized QCI characteristics
Recursive implementation of department tree