Exemplo n.º 1
0
 internal static string GetAssemblyDefinitionFilePathFromAssemblyName(EditorCompilation editorCompilation, string assemblyName)
 {
     try
     {
         var customScriptAssembly = editorCompilation.FindCustomScriptAssemblyFromAssemblyName(assemblyName);
         return(customScriptAssembly.FilePath);
     }
     catch (Exception)
     {
         return(null);
     }
 }
Exemplo n.º 2
0
        internal static string GetAssemblyDefinitionFilePathFromAssemblyName(EditorCompilation editorCompilation, string assemblyName)
        {
            string result;

            try
            {
                CustomScriptAssembly customScriptAssembly = editorCompilation.FindCustomScriptAssemblyFromAssemblyName(assemblyName);
                result = customScriptAssembly.FilePath;
            }
            catch (Exception)
            {
                result = null;
            }
            return(result);
        }