Hi all,
for context, I want to build a new mod with a complex GUI, and I'm following this tutorial.
I followed the tutorial, but the asset compiler fails when I click "build" and gives a bunch of errors in the console.
After some testing, I was able to reproduce the problem with a simpler setup. Steps to reproduce:
1) Install Unity Version 2017.1.3p1 Personal
2) Create Project
3) Import latest PartTools (April 9, 2019)
4) Open Asset Compiler
5) For the "squadcore" bundle click "Create", "Update", "Build".
After clicking build I get a bunch of errors (message below). I have tested this on Windows 7 and a fresh Windows 10. Same error in both cases.
Any ideas?
TypeLoadException: Could not load type 'KSPFontAsset' from assembly 'KSPAssetCompiler, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null'.
UnityEditor.Build.BuildPipelineInterfaces.InitializeBuildCallbacks (BuildCallbacks findFlags) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:115)
UnityEditor.BuildPipeline:BuildAssetBundles(String, AssetBundleBuild[], BuildAssetBundleOptions, BuildTarget)
KSPAssets.Editor.AssetCompiler:BuildAssetBundles(Boolean, Boolean, String, String[])
KSPAssets.Editor.<BuildBundle>d__6:MoveNext()
KSPAssets.Editor.EditorUtil:UpdateCoroutine()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Assets/Plugins/KSPAssets/TextMeshProResolver.cs(7,7): error CS0246: The type or namespace name `UnityEditor' could not be found. Are you missing an assembly reference?
Error building Player because scripts had compiler errors