Exemple #1
0
 static bool OnOpenedAsset(int instanceID, int line)
 {
     if (!Enabled) // || UnityUtils.UnityVersion >= new Version(2019, 2)
     {
         return(false);
     }
     return(OpenAssetHandler.OnOpenedAsset(instanceID, line, 0));
 }
        static bool OnOpenedAsset(int instanceID, int line)
        {
            if (!PluginEntryPoint.IsRiderDefaultEditor())
            {
                return(false);
            }

            // if (UnityUtils.UnityVersion >= new Version(2019, 2)
            //   return false;
            return(OpenAssetHandler.OnOpenedAsset(instanceID, line, 0));
        }
Exemple #3
0
        private static bool OnOpenedAssetInternal(int instanceID, int line, int column)
        {
            if (!ourInitialized)
            {
                // make sure the plugin was initialized first.
                // this can happen in case "Rider" was set as the default scripting app only after this plugin was imported.
                Init();
            }

            return(ourOpenAssetHandler.OnOpenedAsset(instanceID, line, column));
        }