07 2021 档案
摘要:Selection.GetFiltered 1.Selection.GetFiltered 过滤选中的文件 常用方法Selection.GetFiltered(typeof(Unity.Object),SelectionMode.Assets),拿到选中的文件路径,可以多选操作,得到Assets目录
阅读全文
摘要:GetComponentsInChildren<T> 一、能获取到自己的情况 Transform[] trans = GetComponentsInChildren<Transform>();因为root对象以及其6个子对象都有Transform组件,所以获取到的size是7,包含了root自身节点
阅读全文

浙公网安备 33010602011771号