playMaker

Author Topic: [SOLVED] Playmaker bug (CallMethod.cs and ArrayContains.cs showing errors)!!!  (Read 111 times)

Arnoob

  • Junior Playmaker
  • **
  • Posts: 63
    • View Profile
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.
« Last Edit: June 13, 2019, 06:54:24 AM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3618
  • Official Playmaker Support
    • View Profile
    • LinkedIn
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.

Arnoob

  • Junior Playmaker
  • **
  • Posts: 63
    • View Profile
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?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3618
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Yes :) Look for that Array script and delete it.

Arnoob

  • Junior Playmaker
  • **
  • Posts: 63
    • View Profile
Okay I found it and it worked! Thank you a lot!  ;D I'll be careful with that now.