当前位置:网站首页>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 .
边栏推荐
- There is a new breakthrough in quantum field: the duration of quantum state can exceed 5 seconds
- 【牛客网刷题系列 之 Verilog快速入门】~ 优先编码器电路①
- Reflective XSS vulnerability
- LeetCode中等题之TinyURL 的加密与解密
- 重磅披露!上百个重要信息系统被入侵,主机成为重点攻击目标
- China sorbitol Market Forecast and investment strategy report (2022 Edition)
- Petrv2: a unified framework for 3D perception of multi camera images
- 为什么你要考虑使用Prisma
- Openlayers customize bubble boxes and navigate to bubble boxes
- Shenyu gateway development: enable and run locally
猜你喜欢
官宣!香港科技大学(广州)获批!
Detailed explanation of string's trim() and substring()
【PyG】文档总结以及项目经验(持续更新
Machine learning 11 clustering, outlier discrimination
DNS
Integer array merge [JS]
Leetcode records - sort -215, 347, 451, 75
[mathematical modeling] [matlab] implementation of two-dimensional rectangular packing code
ACL 2022 | 分解的元学习小样本命名实体识别
如何写出好代码 — 防御式编程指南
随机推荐
在MeterSphere接口测试中如何使用JMeter函数和MockJS函数
Please, stop painting star! This has nothing to do with patriotism!
ShenYu 网关开发:在本地启用运行
JDBC:深入理解PreparedStatement和Statement[通俗易懂]
Determine whether the linked list is a palindrome linked list
Vulnhub range hacksudo Thor
National Security Agency (NSA) "sour Fox" vulnerability attack weapon platform technical analysis report
Shenyu gateway development: enable and run locally
Maizeer: the two batches of products reported by the media have been taken off the shelves and sealed, and consumer appeals are accepted
(十七)DAC转换实验
Alibaba cloud, Zhuoyi technology beach grabbing dialogue AI
Gold, silver and four want to change jobs, so we should seize the time to make up
Oom caused by improper use of multithreading
阿里云李飞飞:中国云数据库在很多主流技术创新上已经领先国外
In depth evaluation and development trend prediction report of China's ice cream market (2022 Edition)
Iommu/smmuv3 code analysis (10) page table operation
Vulnhub range hacker_ Kid-v1.0.1
Kia recalls some K3 new energy with potential safety hazards
Report on research and investment prospects of UHMWPE industry in China (2022 Edition)
Concatenate strings to get the result with the smallest dictionary order