For some reason when I am trying to build my project out for Windows UWP, I am getting 8 errors om the ReflectionsHelper.cs. I have attached image. I am using Unity 2017.3.0p1 and current Cinemachine from the Asset Store. Any ideas how to fix this?
Update: I think I located the problem another plug-in.
Update 2: The issue is with Behavior Designer (source) and Cinemachine when building to UWP platform. I contacted the developer of Behavior Designer and they think its an issue with Cinemachine. I made a bug report 988058.
To reproduce the issue in a new project:
Switch to Windows 10 UWP
Import Cinemachine
Import Behavior Designer
Remove the Behavior Designer runtime DLLs
Import Behavior Designer Source from developer’s website
Open Example Cinemachine scene. I added a cube and added Behavior Designer like action rotate
Build for platform and it fails with error pictured (ReflectionHelpers.cs related errors).
Can you try patching Cinemachine, by changing “BindingFlags” to “System.Reflection.BindingFlags” wherever it occurs in ReflectionHelpers.cs? Does that fix the problem?
That did fix the compiling issue! However, it seem that the CM cameras are not working when it built out as deployed as UWP app in Visual Studios with Behavior Designer gameobject in the scene. When I remove the Behavior Designer gameobject and recompile / deploy it, the scene works without any issues. Any ideas?
Are you saying that it works fine in the editor with Behavior Designer, but not when you build the project? And can you be more specific in describing how the vcams don’t work?
And it works on UWP with Cinemachine but without Behavior Designer, right? I’m at a loss here as to what could be going wrong. Can you give some details of your CM usage? Can you make a really simple project to repro the issue?