I've just found that it happens when the color space is set to Linear. When I've deleted all setting assets it just created new ones with default set to Gamma, that's why it 'removed' the issue. Anyway, with linear it's still there.
My main project uses Linear space and now I'm wondering if I can update Playmaker in it as it would probably trigger this error there too. Any idea what's the reason of that?
Maybe it won't be happening in new Unity versions. Anyway you always suggest to first update Playmaker and then update Unity. Should I update Playmaker, ignore the issue and update Unity?
My plan was to update Playmaker and Unity to 2018.3 but with this error I'm wondering if I should do it. Could this make some changes in files or somehting that would stay in the project?
---
I've also did a test on a new, empty project.
1. Create new empty project in 2017.1.0.p4
2. Set color space to Linear
2. Install Playmaker 1.9.0.p8 from Asset Store
Result: Playmaker editor is black
Screenshot:
https://i.imgur.com/TgvKW0V.jpgI can switch dynamically between Gamma and Linear and Playmaker becomes dark always when Linear mode is active. With Gamma the window looks fine.
Here is a similar topic on Unity forum, the editor color change look very similar on their screenshots:
https://forum.unity.com/threads/regression-in-linear-space-game-scene-editor-are-way-more-dark-from-2017-4-lts-to-unity-2018-2b.528733/Also, there is a console error that I'm always getting when installing/reimporting Playmaker. I've found some threads on Unity forums, here and some other asset forums with same error. Anyway I'm not sure if it could be related because I'm getting same error when installing Playmaker 1.8.4.f5 which works fine in Linear.
I've already installed Microsoft .NET Portable Library Reference Assemblies 4.6 but error is still visible after installing/reimporting.
[AssemblyUpdater] Assembly reference folder does not exist: 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.6\'
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x000f7] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00007] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.DefaultAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00025] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.MetadataResolver.Resolve (Mono.Cecil.TypeReference type) [0x00040] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.ModuleDefinition.Resolve (Mono.Cecil.TypeReference type) [0x00006] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.TypeReference.Resolve () [0x00006] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.Mixin.CheckedResolve (Mono.Cecil.TypeReference self) [0x00000] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.SignatureReader.ReadCustomAttributeEnum (Mono.Cecil.TypeReference enum_type) [0x00000] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.SignatureReader.ReadCustomAttributeElementValue (Mono.Cecil.TypeReference type) [0x0002f] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.SignatureReader.ReadCustomAttributeElement (Mono.Cecil.TypeReference type) [0x00015] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.SignatureReader.ReadCustomAttributeFixedArgument (Mono.Cecil.TypeReference type) [0x00015] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.SignatureReader.ReadCustomAttributeConstructorArguments (Mono.Cecil.CustomAttribute attribute, Mono.Collections.Generic.Collection`1[T] parameters) [0x0002e] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.MetadataReader.ReadCustomAttributeSignature (Mono.Cecil.CustomAttribute attribute) [0x0003c] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.CustomAttribute.<Resolve>b__35_0 (Mono.Cecil.CustomAttribute attribute, Mono.Cecil.MetadataReader reader) [0x00000] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.ModuleDefinition.Read[TItem,TRet] (TItem item, System.Func`3[T1,T2,TResult] read) [0x00029] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.CustomAttribute.Resolve () [0x00017] in <aa9db9129f9d4243a99d025330e76d74>:0
at Mono.Cecil.CustomAttribute.get_ConstructorArguments () [0x00000] in <aa9db9129f9d4243a99d025330e76d74>:0
at AssemblyUpdater.Steps.MoveToNamespace.Visit (Mono.Cecil.CustomAttribute customAttribute, Unity.Cecil.Visitor.Context context) [0x000a5] in <fc8204afd8f44ddfb3725526ef3671e2>:0
at Unity.Cecil.Visitor.Visitor.Visit (Mono.Cecil.TypeDefinition typeDefinition, Unity.Cecil.Visitor.Context context) [0x00042] in <a2988452bd13497f8d7a464ae6072554>:0
at Unity.Cecil.Visitor.Visitor.Visit (Mono.Cecil.ModuleDefinition moduleDefinition, Unity.Cecil.Visitor.Context context) [0x00024] in <a2988452bd13497f8d7a464ae6072554>:0
at Unity.Cecil.Visitor.Visitor.Visit (Mono.Cecil.AssemblyDefinition assemblyDefinition, Unity.Cecil.Visitor.Context context) [0x00024] in <a2988452bd13497f8d7a464ae6072554>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in <a90417619fac49d5924050304d0280bb>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00053] in <a90417619fac49d5924050304d0280bb>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <a90417619fac49d5924050304d0280bb>:0
at Unity.Cecil.Visitor.Visitor.Visit[T] (T node, Unity.Cecil.Visitor.Context context) [0x00038] in <a2988452bd13497f8d7a464ae6072554>:0
at Unity.Cecil.Visitor.Extensions.DoAccept[T] (T definition, Unity.Cecil.Visitor.Visitor visitor) [0x0001e] in <a2988452bd13497f8d7a464ae6072554>:0
at Unity.Cecil.Visitor.Extensions.Accept (Mono.Cecil.AssemblyDefinition assemblyDefinition, Unity.Cecil.Visitor.Visitor visitor) [0x00001] in <a2988452bd13497f8d7a464ae6072554>:0
at AssemblyUpdater.Steps.AssemblyUpdaterStepBase.Apply (AssemblyUpdater.Core.AssemblyUpdaterContext context) [0x00013] in <fc8204afd8f44ddfb3725526ef3671e2>:0
at AssemblyUpdater.Core.AssemblyUpdaterPipeline.RunUpdateRound (AssemblyUpdater.Core.AssemblyUpdaterContext context) [0x00036] in <fc8204afd8f44ddfb3725526ef3671e2>:0
at AssemblyUpdater.Core.AssemblyUpdaterPipeline.Run (AssemblyUpdater.Core.AssemblyUpdaterContext context) [0x00009] in <fc8204afd8f44ddfb3725526ef3671e2>:0
at AssemblyUpdater.Application.Program.CheckForObsoleteAPIUsage (AssemblyUpdater.Application.CommandLineSpec config) [0x0008c] in <fc8204afd8f44ddfb3725526ef3671e2>:0
at AssemblyUpdater.Application.Program.Main (System.String[] args) [0x00057] in <fc8204afd8f44ddfb3725526ef3671e2>:0
UnityEditor.Scripting.APIUpdaterHelper:DoesAssemblyRequireUpgrade(String)