Hey everybody,
we’re using a fairly big collection of plugins for re-using code between our Unity games. Some of the classes of these plugins have the [Serializable] attribute attached.
We’ve got two questions about this, trying to port FreudBot to Windows Phone now:
-
As Aurimas mentioned, you can wrap those attributes with #if UNITY_METRO if you don’t use it for serialization. However, doing so causes building the player to fail. We’ve created a minimum repro and filed a bug report here: http://fogbugz.unity3d.com/default.asp?639805_3ka6s3q97vd0hrbj
-
What can we do if we actually DO use these attributes for having Unity serialize instances of these classes, which might be the more common case, by far, after all?
Thanks,
Nick