当前位置:网站首页>【Unity编辑器扩展】快速定位资源和脚本的指定文件和路径
【Unity编辑器扩展】快速定位资源和脚本的指定文件和路径
2022-07-17 00:14:00 【幻世界】
此编辑器扩展工具脚本主要是设置快捷方式打开并定位我们资源文件的路径,特别是当我们工程目录结构复杂,查找预制体和脚本不方便的时候使用这个工具。
public class EditorTool
{
//Alt+R打开资源路径
[MenuItem("HSJ/快捷方式/打开UI预制路径 &R")]
static void OpenResourcesUIPanel()
{
Selection.activeObject = AssetDatabase.LoadAssetAtPath<GameObject>("Assets/Resources/Prefab/Panel/LoginPanel.prefab");
}
//Alt+S打开脚本路径
[MenuItem("HSJ/快捷方式/打开Panel脚本路径 &S")]
static void OpenScript()
{
Selection.activeObject = AssetDatabase.LoadAssetAtPath<TextAsset>("Assets/Scripts/MessageBoxPanel.cs");
}
//Alt+S打开指定文件夹路径
[MenuItem("HSJ/快捷方式/打开工程目录 &O")]
private static void OpenProjectFolder()
{
EditorUtility.RevealInFinder(Application.dataPath);
}
}边栏推荐
- 【工具篇】SQLite本地数据库在Unity3D的应用
- 搭建map-reduce开发环境
- 成信大ENVI_IDL第二周课后作业:提取n个点的气溶胶厚度+详细解析
- ENVI_ Idl: batch re projection of modisswath products (calling the secondary development interface) + parsing
- 博客里《DSAA》相关文章的代码
- YYDS!阿里技术官最新总结的分布式核心技术笔记已上线,堪称福音
- gdb+vscode进行调试7——程序出现segmentation default/段错误,如何进行调试?
- 03 design of urban road dedusting and cooling system based on ZigBee
- Labelme正常启动,但无法打开
- ENVI_IDL: 文本文件的读取(主要是txt、csv文件)
猜你喜欢

ENVI_IDL:读取所有OMI产品的NO2柱含量并计算月均值、季均值、年均值+解析

软件测试技术期中测试小结|软件测试基础&执行测试&测试设计和开发

树和堆知识点总结

gdb+vscode进行调试3——vscode以及gdb远程调试

VS Code 问题:launch:program‘...\.vscode\launch.exe‘ dose not exist

成信大ENVI_IDL第二周课后作业:提取n个点的气溶胶厚度+详细解析

02 design of smart home system based on ZigBee

05 design of street lamp control fault detection system based on ZigBee

ENVI_IDL:读取OMI数据(HDF5)并输出为Geotiff文件+详细解析

Memory pooling of pooled components
随机推荐
ENVI_IDL:读取所有OMI产品的NO2柱含量并计算月均值、季均值、年均值+解析
Opengauss Developer Day 2022 dongfangtong sincerely invites you to visit the "dongfangtong ecological tools sub forum"
On the properties and methods of list < t >
Oozie 集成 Shell
Gdb+vscode debugging 6 -- Notes on GDB debugging multithreaded commands
Gdb+vscode for debugging 2 - GDB breakpoint related
第2章-系统控制原理 -> 经典控制理论
Prohibit smart Safari from playing automatically when opening a web page
Zeno paradox 2 Achilles and tortoise
Oozie 集成 Ssh
笔记:光源选型与应用
笔记一之IDL基础内容:常用数据类型_创建数组_类型转换_print输出_基本运算_关系运算
BladeX——精心设计的微服务架构
ENVI_ Idl: batch process the re projection of MODIS swath data and output it to GeoTIFF format + detailed analysis
树和堆知识点总结
Gdb+vscode debugging -- how to debug the release version
ENVI_ Idl: batch Reproject MODIS swath products and specify the range output as GeoTIFF format + parsing
LeetCode:动态规划中的子序列问题
leetcode力扣经典题目——82.柱形图中的最大矩形
成信大ENVI_IDL第二周课后作业:提取n个点的气溶胶厚度+详细解析