当前位置:网站首页>【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边栏推荐
- Build map reduce development environment
- 03 design of urban road dedusting and cooling system based on ZigBee
- 芝诺悖论2 阿基里斯与乌龟
- ENVI_IDL: 读取文本文件并输出为Geotiff格式+简单均值插值
- Static library and dynamic library
- 池式组件之线程池篇
- Build hue environment
- ENVI_IDL:批量拼接Modis Swath的逐日数据并输出为Geotiff格式
- windows安装mysql和jdbc
- Build spark on yarn environment
猜你喜欢

VIM profile

Opengauss Developer Day 2022 dongfangtong sincerely invites you to visit the "dongfangtong ecological tools sub forum"

Envi IDL: lire la teneur en colonne de NO2 de tous les produits OMI et calculer la moyenne mensuelle, la moyenne trimestrielle, la moyenne annuelle + résolution

【Unity编辑器扩展】显示资源目录下所有文件所占内存大小

Double Q-Learning理论基础及其代码实现【Pendulum-v0】

Labelme 的简单用法和界面介绍

02 design of smart home system based on ZigBee

STL--stack容器

ENVI_ IDL: read OMI data (HDF5) and output it as GeoTIFF file + detailed parsing

MATLAB :Warning: the font “Times” is not available
随机推荐
Allegro design entry CIS and OrCAD capture CIS relationship
Set up sqoop environment
05 design of street lamp control fault detection system based on ZigBee
【动态规划百题强化计划】1~10(持续更新中)
Leetcode 1: Two Sum
STL--deque容器
【工具篇】Unity快速上手制作2D和2.5D游戏的神器TileMap
Gdb+vscode for debugging 5 - GDB view relevant commands
gdb+vscode进行调试5——gdb查看相关命令
Static library and dynamic library
Oozie 集成 Sqoop
ENVI_ Idl: reading of text files (mainly txt and CSV files)
STL--map容器
ENVI_ Idl: average calculation + analysis of MODIS swath products in batches
gdb+vscode进行调试7——程序出现segmentation default/段错误,如何进行调试?
Oozie integrated sqoop
Visual Studio 2019-QT调试
Dueling DQN的理论基础及其代码实现【Pytorch + Pendulum-v0】
捉虱子的博弈论
浏览器无法打开Tensorboard