Пример #1
0
 public static void RemoveDefineSymbols()
 {
     //UnityHelper.SetDefineSymbol(DEFINE_SYMBOLS.VRC_SDK_INSTALLED, false);
     UnityHelper.SetDefineSymbol("VRC_SDK_VRCSDK3", false, false);
     UnityHelper.SetDefineSymbol("UDON", false, false);
     UnityHelper.SetDefineSymbol("VRC_SDK_VRCSDK2", false);
 }
Пример #2
0
 private static void CheckVRCSDK()
 {
     if (!Settings.is_changing_vrc_sdk)
     {
         UnityHelper.SetDefineSymbol(DEFINE_SYMBOLS.VRC_SDK_INSTALLED, VRCInterface.Get().sdk_is_installed);
     }
 }
Пример #3
0
 public static void OnAssetDeleteCheckDrawingDLL(string[] deleted_assets)
 {
     foreach (string path in deleted_assets)
     {
         if (path == PATH.RSP_NEEDED_PATH + RSP_FILENAME + ".rsp" || path.EndsWith("/System.Drawing.dll"))
         {
             UnityHelper.SetDefineSymbol(DEFINE_SYMBOLS.IMAGING_EXISTS, false, true);
         }
     }
 }
        public static void SetVRCDefineSybolIfSDKDeleted(string[] importedAssets)
        {
            bool currently_deleteing_sdk = (FileHelper.LoadValueFromFile("delete_vrc_sdk", PATH.AFTER_COMPILE_DATA) == "true");

            if (!Settings.is_changing_vrc_sdk && !currently_deleteing_sdk && AssetsContainVRCSDK(importedAssets))
            {
                UnityHelper.SetDefineSymbol(DEFINE_SYMBOLS.VRC_SDK_INSTALLED, false);
                Update();
            }
        }
Пример #5
0
 public static void CheckDrawingDll()
 {
     if (Type.GetType("System.Drawing.Image, System.Drawing") == null)
     {
         string    filename = GetRSPFilename();
         RSP_State state    = CheckRSPState(filename);
         switch (state)
         {
         case RSP_State.missing:
         case RSP_State.missing_drawing_dll:
             AddDrawingDLLToRSP(PATH.RSP_NEEDED_PATH + filename + ".rsp");
             break;
         }
         UnityFixer.CheckAPICompatibility();
     }
     UnityHelper.SetDefineSymbol(DEFINE_SYMBOLS.IMAGING_EXISTS, true, true);
 }
Пример #6
0
 public static void RemoveDefineSymbols()
 {
     UnityHelper.SetDefineSymbol(DEFINE_SYMBOLS.IMAGING_EXISTS, false);
 }
 public void RemoveVRCSDK(bool refresh)
 {
     FileHelper.SaveValueToFile("delete_vrc_sdk", "true", PATH.AFTER_COMPILE_DATA);
     UnityHelper.SetDefineSymbol(DEFINE_SYMBOLS.VRC_SDK_INSTALLED, false);
     AssetDatabase.Refresh();
 }
Пример #8
0
 public static void RemoveDefineSymbols()
 {
     UnityHelper.SetDefineSymbol(DEFINE_SYMBOLS.VRC_SDK_INSTALLED, false);
 }