Hi,
I've encountered an error I can't figure out the answer to. I'm creating an object in my scene, using the Create Object action.
I store the object in a game object variable, called currentProjectile.
When I hold the finger down, I create the projectile from prefab, store it in currentProjectile, and start to increase force. When I release the finger and apply the force accrued on currentProjectile.
That, is... I'd like to. Playmaker won't let me use the variable currentProjectile in other actions.
The error I see is the following:
ArgumentException: Object type HutongGames.PlayMaker.FsmGameObject cannot be converted to target type: HutongGames.PlayMaker.FsmOwnerDefault
Parameter name: val
System.Reflection.MonoField.SetValue (System.Object obj, System.Object val, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoField.cs:133)
System.Reflection.FieldInfo.SetValue (System.Object obj, System.Object value) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/FieldInfo.cs:150)
HutongGames.PlayMakerEditor.ActionEditor.DoVariableSelection (System.Object userdata) (at c:/Users/Alex/Documents/Unity/Playmaker/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/ActionEditor.cs:2436)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, Int32 selected) (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/GenericMenu.cs:113)
As usual, I'm sure the mistake is dumb, but I can't figure it out. I searched the forums for this error message, but I can't find anything.
Thanks.