Tekkaman

导航

 

判断当前Selection是否为prefab

PrefabUtility.GetPrefabParent(target) == null && PrefabUtility.GetPrefabObject(target) != null

参考:file://localhost/Applications/Unity/Unity.app/Contents/Documentation/Documentation/ScriptReference/PrefabUtility.html

posted on 2014-07-07 15:20  Tekkaman  阅读(1042)  评论(0编辑  收藏  举报