Ejemplo n.º 1
0
 public static UnityEngine.Object CreateEmptyPrefab(string path)
 {
     UnityEngine.Object result;
     if (!Paths.CheckValidAssetPathAndThatDirectoryExists(path, ".prefab"))
     {
         result = null;
     }
     else
     {
         result = PrefabUtility.Internal_CreateEmptyPrefab(path);
     }
     return(result);
 }
Ejemplo n.º 2
0
 public static UnityEngine.Object CreateEmptyPrefab(string path)
 {
     UnityEngine.Object result;
     if (!Paths.IsValidAssetPathWithErrorLogging(path, ".prefab"))
     {
         result = null;
     }
     else
     {
         result = PrefabUtility.Internal_CreateEmptyPrefab(path);
     }
     return(result);
 }