playMaker

Author Topic: Build error-component (MonoBehavior) added to multiple GameObjects! Removing it!  (Read 2681 times)

Dsc

  • Playmaker Newbie
  • *
  • Posts: 6
Hi, I’m new to the forum. Been using playmaker successfully on a large VR project but recently my build fails with the following error
 Component (MonoBehavior) added to multiple GameObjects! Removing it!

I’m running Unity 2020.1.17f1 with playmaker 1.9.0.p21. My project has a start scene that then loads and unloads scenes additively until the end of the game. I’m unsure how to interpret the error message I’m receiving and can’t find any mention of it in the forums or elsewhere online. It appears to fail as it begins using the playmaker project tools to get all prefab FSMs in build.

I’d really appreciate if anyone can point me in a helpful direction to resolve this.
Thanks!
D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Hi and welcome!

 When does this happens? when you hit play, when you stop playing or else?

Bye,

 Jean

Dsc

  • Playmaker Newbie
  • *
  • Posts: 6
It only occurs when I build. The build process begins going through the playmaker FSMs and after about 15 minutes it fails and produces the errors.

I don’t have any problem playing the project before building.

Dsc

  • Playmaker Newbie
  • *
  • Posts: 6
Correction - I manually ran “Update All FSMs in Build” from the Playmaker/Tools menu and received a similar error after that process

Dsc

  • Playmaker Newbie
  • *
  • Posts: 6
I then ran “preprocess Prefab FSMs in build” from the Playmaker/Tools menu and I received the error I originally reported and which is in the attached image. That took about 25 minutes.

Dsc

  • Playmaker Newbie
  • *
  • Posts: 6
I did a bunch of general FSM cleanup and reduced the number of prefabs and I can build again. Not sure what solved it.