Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Arnoob on June 12, 2019, 06:12:29 PM

Title: [SOLVED] Playmaker bug (CallMethod.cs and ArrayContains.cs showing errors)!!!
Post by: Arnoob on June 12, 2019, 06:12:29 PM
Hello every one.

What is happening is really weird. I was working normally on unity, using playmaker arrays and what not, and all of a sudden an error message popped, preventing me to continue working.

2 Playmaker actions are apparently problematic now (they weren't until then) :

"ArrayContains" and "CallMethod". Those two are crutial for my work, and I can't afford to delete them.
Here are the error logs :

Assets/PlayMaker/Actions/Array/ArrayContains.cs(65,16): error CS0117: `Array' does not contain a definition for `FindIndex'

Assets/PlayMaker/Actions/Array/ArrayContains.cs(68,17): error CS0117: `Array' does not contain a definition for `IndexOf'

Assets/PlayMaker/Actions/ScriptControl/CallMethod.cs(111,52): error CS0117: `Array' does not contain a definition for `CreateInstance'

What can I do to solve this problem? It is critical for me to be able to continue my work without having to start over the project.
Title: Re: Playmaker bug (2018.3.f1) (CallMethod.cs and ArrayContains.cs showing errors)!!!
Post by: Alex Chouls on June 12, 2019, 06:29:04 PM
Did you import any scripts recently? From that error I would guess that another script is defining Array in the global namespace, hiding the system Array type.
Title: Re: Playmaker bug (2018.3.f1) (CallMethod.cs and ArrayContains.cs showing errors)!!!
Post by: Arnoob on June 12, 2019, 07:19:20 PM
Nope, none of them.

However now that you mention it, I misstyped "Array" in the component add bar. Maybe is this related? Did I create a script just like that?
Title: Re: Playmaker bug (2018.3.f1) (CallMethod.cs and ArrayContains.cs showing errors)!!!
Post by: Alex Chouls on June 12, 2019, 07:32:44 PM
Yes :) Look for that Array script and delete it.
Title: Re: Playmaker bug (2018.3.f1) (CallMethod.cs and ArrayContains.cs showing errors)!!!
Post by: Arnoob on June 13, 2019, 05:06:22 AM
Okay I found it and it worked! Thank you a lot!  ;D I'll be careful with that now.