[Unity] Using Microsoft.Expression.Drawing controls
Posted: 08 May 2014, 10:26
We're currently building a project in Unity Pro using NoesisGUI and are running into a problem when using third party libraries. For instance, we would like to use the RegularPolygon defined in Microsoft.Expression.Drawing.dll. Adding a RegularPolygon in Expression blend obviously adds a namespace definition for this library to the document:
xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
As expected, this causes Unity to throw up the following warning:
[DX9] Assets/GUI/cameragui.xaml
Ignoring unknown type 'RegularPolygon' (@106,7)
This makes sense, because unity/noesisgui probably isn't aware of Microsoft.Expression.Drawing.dll. However, I can't figure out how to reference this library so that noesisgui can render the controls defined within. I tried adding Microsoft.Expression.Drawing.dll as an asset, but this causes an internal compiler error: "Unhandled exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded."
What am I doing wrong?
xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
As expected, this causes Unity to throw up the following warning:
[DX9] Assets/GUI/cameragui.xaml
Ignoring unknown type 'RegularPolygon' (@106,7)
This makes sense, because unity/noesisgui probably isn't aware of Microsoft.Expression.Drawing.dll. However, I can't figure out how to reference this library so that noesisgui can render the controls defined within. I tried adding Microsoft.Expression.Drawing.dll as an asset, but this causes an internal compiler error: "Unhandled exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded."
What am I doing wrong?