unity3D 获得对象

Object[] selections = Selection.GetFiltered(typeof(GameObject), SelectionMode.TopLevel);

原文地址:https://www.cnblogs.com/guilt/p/7768787.html