Exemple #1
0
        public static void UpdateVersionedAssets(bool forceUpdate = false)
        {
            string methodName = "UpdateVersionedAssets";
            Dictionary <string, object> namedArgs = new Dictionary <string, object>
            {
                {
                    "forceUpdate",
                    forceUpdate
                }
            };

            VersionHandler.InvokeImplMethod(methodName, null, namedArgs, true);
        }
Exemple #2
0
 public static string[] SearchAssetDatabase(string assetsFilter = null, VersionHandler.FilenameFilter filter = null)
 {
     return(VersionHandler.StringArrayFromObject(VersionHandler.InvokeImplMethod("SearchAssetDatabase", null, new Dictionary <string, object>
     {
         {
             "assetsFilter",
             assetsFilter
         },
         {
             "filter",
             filter
         }
     }, false)));
 }
Exemple #3
0
        public static float GetUnityVersionMajorMinor()
        {
            if (VersionHandler.unityVersionMajorMinor > 0f)
            {
                return(VersionHandler.unityVersionMajorMinor);
            }
            float result;

            try
            {
                object obj = VersionHandler.InvokeImplMethod("GetUnityVersionMajorMinor", null, null, false);
                VersionHandler.unityVersionMajorMinor = (float)obj;
                result = VersionHandler.unityVersionMajorMinor;
            }
            catch (Exception)
            {
                result = 0f;
            }
            return(result);
        }
Exemple #4
0
 public static string[] FindAllAssets()
 {
     return(VersionHandler.StringArrayFromObject(VersionHandler.InvokeImplMethod("FindAllAssets", null, null, false)));
 }
Exemple #5
0
 public static void UpdateNow()
 {
     VersionHandler.InvokeImplMethod("UpdateNow", null, null, true);
 }
Exemple #6
0
 public static void ShowSettings()
 {
     VersionHandler.InvokeImplMethod("ShowSettings", null, null, false);
 }