예제 #1
0
 private static List <Object> GetSelectionDependencies()
 {
     if (!FR2_Cache.isReady)
     {
         Debug.LogWarning("FR2 cache not yet ready, please open Window > FR2_Window !");
         return(null);
     }
     return(FR2_Cache.FindUsage(FR2_Unity.Selection_AssetGUIDs).Select(
                guid =>
     {
         var assetPath = AssetDatabase.GUIDToAssetPath(guid);
         return FR2_Unity.LoadAssetAtPath <Object>(assetPath);
     }
                ).ToList());
 }