Windows UWP Build Error

Hello,

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).

Thanks,

John

Update: Issue is still present in 2017.3.0p2.

Can you try patching Cinemachine, by changing “BindingFlags” to “System.Reflection.BindingFlags” wherever it occurs in ReflectionHelpers.cs? Does that fix the problem?

Thanks for the reply @Gregoryl !

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?

Thanks,

John

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?

Sorry, everything works as expected in the editor. When its deployed as a UWP(Built APPX) the scene is blank as if the cameras are not working.

When you deploy in other ways (e.g. PC standalone), does it work?

It woks on PC standalone.

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?

I have uploaded a bug report with the simple project. I can PM you the link do download it.

1 Like

PM sent. Yes you are correct. I am using the example scene MixingCamera from the example pack in Cinemachine asset.

Again thank you for your help.