当前位置:网站首页>Unity3d extended toolbar
Unity3d extended toolbar
2022-07-01 17:28:00 【Technological transformation of the world】
Add a handy tool to unity3d Editor , Accelerate use efficiency .
public class PathMaker : EditorWindow
{
private static GameObject obj = null;
[MenuItem("GameObject/ Production path ( Shortcut key ALT+A) &a")]
public static void ShowWindow(MenuCommand com)
{
obj = (GameObject)com.context;
SceneView view = SceneView.lastActiveSceneView;
Debug.Log("camera position:"+view.camera.transform.position);
// view.pivot = YOUR_GAME_OBJECT.transform.position;
// Omit here 1000 Words realize their own logic .
}
}
This code converts GameObject Add an option to the right-click menu “ Production path ( Shortcut key ALT+A)”, You can use shortcut keys ALT+A Instead of , Get the camera position in the current scene .
边栏推荐
- String的trim()和substring()详解
- 中国酶制剂市场预测与投资战略研究报告(2022版)
- China metallocene polyethylene (MPE) Industry Research Report (2022 Edition)
- 如何写出好代码 — 防御式编程指南
- 中国一次性卫生用品生产设备行业深度调研报告(2022版)
- Introduction to software engineering - Chapter 6 - detailed design
- 单例模式的懒汉模式跟恶汉模式的区别
- Pytest learning notes (13) -allure of allure Description () and @allure title()
- 多线程并发之CountDownLatch阻塞等待
- 【C语言补充】判断明天是哪一天(明天的日期)
猜你喜欢

Babbitt | yuan universe daily must read: Naixue coin, Yuan universe paradise, virtual stock game Do you understand Naixue's tea's marketing campaign of "operation pull full"

Countdownlatch blocking wait for multithreading concurrency

Machine learning 11 clustering, outlier discrimination

智能运维实战:银行业务流程及单笔交易追踪

Oom caused by improper use of multithreading

SystemVerilog structure (II)

Introduction to software engineering - Chapter 6 - detailed design

Redis6.0 new features

There is a new breakthrough in quantum field: the duration of quantum state can exceed 5 seconds
![Integer array merge [JS]](/img/0d/70535e0eb1c299bda25159b58c70d7.png)
Integer array merge [JS]
随机推荐
Enter wechat applet
The amazing open source animation library is not only awesome, but also small
[Supplément linguistique c] déterminer quel jour est demain (date de demain)
[Verilog quick start of Niuke network question brushing series] ~ priority encoder circuit ①
英特尔开源深度学习工具库 OpenVINO,将加大与本土软硬件方合作,持续开放
两数之和c语言实现[通俗易懂]
Pytest learning notes (13) -allure of allure Description () and @allure title()
Concatenate strings to get the result with the smallest dictionary order
Shenyu gateway development: enable and run locally
(28) Shape matching based on contour features
Code example of libcurl download file
线上开通ETF基金账户安全吗?有哪些步骤?
redis -- 数据类型及操作
存在安全隐患 起亚召回部分K3新能源
走进微信小程序
Redis6.0 new features
Gameframework eating guide
【C语言基础】12 字符串
中国冰淇淋市场深度评估及发展趋势预测报告(2022版)
[flask introduction series] cookies and session