📌  相关文章
📜  unity 使用脚本查找所有对象 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:22.239000             🧑  作者: Mango

代码示例1
public void GetAllObjectsWithScript() {                
     ScriptName[] list = FindObjectsOfType(typeof(ScriptName)) as ScriptName[];
     foreach(ScriptName obj in list) {             
         // Do whatever          
     }     
}