Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: norcrel on February 27, 2014, 05:23:48 PM

Title: Unity Serializer Can't Load playMakerFSM
Post by: norcrel on February 27, 2014, 05:23:48 PM
it appears I can save a playMakerFSM just fine but when I try to load a game with an FSM in it I get this error:

Quote
Serialization error: Serialization.UnitySerializer+MissingConstructorException: Could not construct an object of type 'System.MonoType', it must be creatable in this scope and have a default parameterless constructor or you should handle the CreateType event on UnitySerializer to construct the object

I dove into both Unity Serializer and playMaker code and found it was failing when trying to deserialize ObjectType in FsmObject.

I'm not quite sure where to go from here. Has anyone had this problem?

Here's what I'm using
Unity4.3.4f1
Unity Serializer 2.51
PlayMakerFSM1.7.6.f4
Title: Re: Unity Serializer Can't Load playMakerFSM
Post by: jeanfabre on March 04, 2014, 08:02:46 AM
Hi,

 what is this object in question you are storing in an FsmObject?

bye,

 Jean
Title: Re: Unity Serializer Can't Load playMakerFSM
Post by: Khoa1994 on July 12, 2014, 12:00:47 AM
I experience the same errors too. Does anyone know how to fix this?
Title: Re: Unity Serializer Can't Load playMakerFSM
Post by: Alex Chouls on July 12, 2014, 12:17:48 PM
Does it work with a simple project/scene? If it's failing on ObjectType in FsmObject it might be a type that Unity Serializer doesn't know how to serialize. Double check that it's the object you mean to reference (e.g., check that you haven't accidentally referenced a monoscript in the project instead of the component on a game object).