当前位置:网站首页>【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边栏推荐
- Foo bar 什么鬼?
- ENVI_ Idl: read the NO2 column content of all OMI products and calculate the monthly average, quarterly average, annual average + analysis
- ENVI_IDL: 读取文本文件并输出为Geotiff格式+简单均值插值
- 成信大ENVI_IDL第三周课堂内容1:读取OMI数据(HDF5文件)以及输出+解析
- Gdb+vscode for debugging 4 - GDB executes relevant commands
- 基于蒙特卡洛的强化学习方法【附带代码实现】
- VIM profile
- Leetcode 322: Coin Change - 动态规划
- MATLAB :Warning: the font “Times” is not available
- 06 design of smart electronic medicine box based on stm32
猜你喜欢
![[vernacular analog 1] PN junction and diode](/img/a8/26d3dc49eb74b7c8c5970ddbd31b65.png)
[vernacular analog 1] PN junction and diode

SAE j1708/j1587 protocol details

笔记一之IDL基础内容:常用数据类型_创建数组_类型转换_print输出_基本运算_关系运算

(附word操作以及视频讲解)使用ARCGIS进行地图配准_投影变换_普通地图制作_专题地图制作

Powerful chart component library scottplot

ENVI_IDL:批量拼接Modis Swath的逐日数据并输出为Geotiff格式

池式组件之线程池篇

DQN理论基础及其代码实现【Pytorch + CartPole-v0】

Gdb+vscode for debugging 2 - GDB breakpoint related

ENVI_ Idl: batch re projection of modisswath products (calling the secondary development interface) + parsing
随机推荐
VS Code 问题:launch:program‘...\.vscode\launch.exe‘ dose not exist
ENVI_IDL:批量拼接Modis Swath的逐日数据并输出为Geotiff格式
测试知识准备
搭建map-reduce开发环境
06 design of smart electronic medicine box based on stm32
STL--string容器
ENVI_IDL:读取OMI数据(HDF5)并输出为Geotiff文件+详细解析
Basic principle and parameter interpretation of operational amplifier
Install websocketpp
Labelme正常启动,但无法打开
STL--queue容器
成信大ENVI_IDL第一周实验测试:数组的简单运算+详细解析
gdb+vscode进行调试6——gdb调试多线程命令札记
Cookie和Session的区别
VIM profile
Gdb+vscode debugging 6 -- Notes on GDB debugging multithreaded commands
池式组件之内存池篇
STL--map容器
Gdb+vscode for debugging 2 - GDB breakpoint related
Gdb+vscode for debugging 4 - GDB executes relevant commands