当前位置:网站首页>【Unity编辑器扩展】查找场景和资源内挂载某脚本的所有对象
【Unity编辑器扩展】查找场景和资源内挂载某脚本的所有对象
2022-07-17 00:14:00 【幻世界】
此编辑器扩展工具脚本主要是快速找到在场景和资源预制体上挂载指定脚本的所有对象,,特别是当我们场景目录结构复杂,想查找所有使用某脚本的物体时使用这个工具。


public class AssetPrefabFinder : EditorWindow
{
static AssetPrefabFinder window;
//路径可配置
public string fullPath ="Assets/Resources";
MonoScript scriptObj = null;
int loopCount = 0;
List<Transform> results = new List<Transform>();
[MenuItem("HSJ/Finder/AssetFinder")]
static voi边栏推荐
- STL--map容器
- gdb+vscode进行调试1——使用CMakelist文件进行编译和调试+附加进程调试
- DGC best practice: how to ensure that confidential data is not leaked when entering the lake?
- 04 design of indoor wireless positioning system based on ZigBee
- BladeX——精心设计的微服务架构
- Leetcode 322: Coin Change - 动态规划
- ENVI_ Idl: batch re projection of modisswath products (calling the secondary development interface) + parsing
- gdb+vscode进行调试8——使用core分析死循环、死锁、段错误
- LeetCode:动态规划中的0-1背包问题【快来直接套模板啦】
- 博客里《DSAA》相关文章的代码
猜你喜欢

【Unity开发小技巧】Unity打包PC端exe,压缩打包为一个exe文件

Vmware Tools最新安装教程(RHEL8)

工程编译那点事:Makefile和cmake(一)

(with word operation and video explanation) map registration using ArcGIS_ Projection transformation_ General map making_ Thematic map making

gdb+vscode进行调试4——gdb执行相关命令

池式组件之内存池篇

ENVI:(2022年最详细的教程)自定义坐标系

Analysis of IGBT direct short circuit process

LeetCode:动态规划中的子序列问题

散列表、布隆过滤器、分布式一致性hash
随机推荐
Foo bar 什么鬼?
ENVI_ Idl: read the text file and output it in GeoTIFF format + simple mean interpolation
ENVI_IDL:批量重投影Modis Swath产品并指定范围输出为Geotiff格式+解析
ENVI_ Idl: batch Reproject MODIS swath products and specify the range output as GeoTIFF format + parsing
池式组件之内存池篇
Clion installation and ROS development to realize automatic prompt completion
芝诺悖论2 阿基里斯与乌龟
Gdb+vscode for debugging 0 - environment configuration
Gdb+vscode for debugging 7 - how to debug when there is a segmentation default/ segment error in the program?
浏览器无法打开Tensorboard
工程编译那点事:Makefile和cmake(一)
二叉树的遍历
ENVI_ Idl: average calculation + analysis of MODIS swath products in batches
ENVI_IDL:读取所有OMI产品的NO2柱含量并计算月均值、季均值、年均值+解析
英文商务邮件常用语
ENVI_ Idl: batch process the re projection of MODIS swath data and output it to GeoTIFF format + detailed analysis
ENVI_ Idl: batch splice the daily data of MODIS swath and output it in GeoTIFF format
VIM profile
SAE j1708/j1587 protocol details
ENVI:(2022年最详细的教程)自定义坐标系