当前位置:网站首页>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";
}
}
边栏推荐
- Linear distance between two points of cesium
- POJ3617 Best Cow Line 馋
- (3) Web security | penetration testing | basic knowledge of network security construction, IIS website construction, EXE backdoor generation tool quasar, basic use of
- 【计网】第三章 数据链路层(4)局域网、以太网、无线局域网、VLAN
- Wonderful coding [hexadecimal conversion]
- [calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer
- 某东短信登录复活 安装部署教程
- 22-07-05 upload of qiniu cloud storage pictures and user avatars
- 腾讯字节阿里小米京东大厂Offer拿到手软,老师讲的真棒
- B-杰哥的树(状压树形dp)
猜你喜欢

5. 無線體內納米網:十大“可行嗎?”問題

Redisson bug analysis

永磁同步电机转子位置估算专题 —— 基波模型与转子位置角
Tencent Android development interview, basic knowledge of Android Development

Transformer model (pytorch code explanation)

数字三角形模型 AcWing 1018. 最低通行费
![[cloud native and 5g] micro services support 5g core network](/img/c9/4ccacd1e70285c2ceb50c324e5018c.png)
[cloud native and 5g] micro services support 5g core network

PowerPivot——DAX(初识)

Example of shutter text component

【计网】第三章 数据链路层(4)局域网、以太网、无线局域网、VLAN
随机推荐
Microservice architecture debate between radical technologists vs Project conservatives
枚举根据参数获取值
数字三角形模型 AcWing 1018. 最低通行费
Alibaba data source Druid visual monitoring configuration
Enumeration gets values based on parameters
腾讯T4架构师,android面试基础
Alibaba数据源Druid可视化监控配置
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
Cesium 两点之间的直线距离
js获取浏览器系统语言
Selenium advanced operations
mod_ WSGI + pymssql path SQL server seat
Database specific interpretation of paradigm
rt-thread i2c 使用教程
转让malloc()该功能后,发生了什么事内核?附malloc()和free()实现源
腾讯T2大牛亲自讲解,跳槽薪资翻倍
【计网】第三章 数据链路层(3)信道划分介质访问控制
【云小课】EI第47课 MRS离线数据分析-通过Flink作业处理OBS数据
HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
Method keywords deprecated, externalprocname, final, forcegenerate