在Hierarchy面板隐藏物体

PlantObjPreview.hideFlags = HideFlags.HideInHierarchy;

原文地址:https://www.cnblogs.com/luxishi/p/7641603.html