当前位置:网站首页>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";
}
}
边栏推荐
- Anaconda安裝後Jupyter launch 沒反應&網頁打開運行沒執行
- Leetcode brush first_ Maximum Subarray
- Enumeration gets values based on parameters
- Special topic of rotor position estimation of permanent magnet synchronous motor -- Summary of position estimation of fundamental wave model
- 方法关键字Deprecated,ExternalProcName,Final,ForceGenerate
- 腾讯T2大牛亲自讲解,跳槽薪资翻倍
- What happened to the kernel after malloc() was transferred? Attached malloc () and free () implementation source
- A5000 vgpu display mode switching
- 数字三角形模型 AcWing 1018. 最低通行费
- Groovy基础语法整理
猜你喜欢

Microservice architecture debate between radical technologists vs Project conservatives
![[network planning] Chapter 3 data link layer (3) channel division medium access control](/img/df/dd84508dfa2449c31d72c808c50dc0.png)
[network planning] Chapter 3 data link layer (3) channel division medium access control

Transformer model (pytorch code explanation)

Le lancement du jupyter ne répond pas après l'installation d'Anaconda

BUUCTF---Reverse---easyre

Continuous test (CT) practical experience sharing

【Yann LeCun点赞B站UP主使用Minecraft制作的红石神经网络】

Monthly report of speech synthesis (TTS) and speech recognition (ASR) papers in June 2022

腾讯T3大牛手把手教你,大厂内部资料
![[calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer](/img/8c/afb90128e7a523bbee4c6c4166363f.png)
[calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer
随机推荐
【云原生与5G】微服务加持5G核心网
02 基础入门-数据包拓展
Node. Js: express + MySQL realizes registration, login and identity authentication
Crawler (14) - scrape redis distributed crawler (1) | detailed explanation
Redisson bug analysis
枚举根据参数获取值
Oceanbase Community Edition OBD mode deployment mode stand-alone installation
rt-thread i2c 使用教程
【Yann LeCun点赞B站UP主使用Minecraft制作的红石神经网络】
Qinglong panel white screen one key repair
PowerPivot——DAX(初识)
POJ3617 Best Cow Line 馋
[play with Linux] [docker] MySQL installation and configuration
Web开发小妙招:巧用ThreadLocal规避层层传值
Initial experience of addresssanitizer Technology
5. 無線體內納米網:十大“可行嗎?”問題
String长度限制?
爬虫(14) - Scrapy-Redis分布式爬虫(1) | 详解
Cesium 点击绘制圆形(动态绘制圆形)
HDU 1026 search pruning problem within the labyrinth of Ignatius and the prince I