Ejemplo n.º 1
0
    internal static string[] CollectAllChildren(string guid, string[] collection)
    {
        List <string> strs = new List <string>()
        {
            "UnityEditor.AssetDatabase.CollectAllChildren",
            "UnityEditor.AssetServer.CollectAllChildren"
        };

        return((string[])BackwardsCompatibilityUtility.TryStaticInvoke(strs, new object[] { guid, collection }));
    }
Ejemplo n.º 2
0
    internal static void ExportPackage(string[] guids, string fileName, bool needsPackageManagerManifest)
    {
        List <string> strs = new List <string>();

        if (needsPackageManagerManifest)
        {
            strs.Add("UnityEditor.PackageUtility.ExportPackageAndPackageManagerManifest");
        }

        strs.Add("UnityEditor.PackageUtility.ExportPackage");
        strs.Add("UnityEditor.AssetServer.ExportPackage");
        BackwardsCompatibilityUtility.TryStaticInvoke(strs, new object[] { guids, fileName });
    }
Ejemplo n.º 3
0
    internal static void ExportPackage(string[] guids, string fileName)
    {
        List <string> methods = new List <string>
        {
            "UnityEditor.PackageUtility.ExportPackage",
            "UnityEditor.AssetServer.ExportPackage"
        };

        object[] parameters = new object[]
        {
            guids,
            fileName
        };
        BackwardsCompatibilityUtility.TryStaticInvoke(methods, parameters);
    }