playMaker

Author Topic: Remove or rethink [RequiredComponent]  (Read 1548 times)

dasbin

  • Junior Playmaker
  • **
  • Posts: 92
    • View Profile
Remove or rethink [RequiredComponent]
« on: November 21, 2012, 12:23:32 PM »
Hi,

Since it is possible to add / remove components within a state, it no longer makes much sense to have any of the actions require a particular component on initialization. I find myself having to edit dozens of the built-in Actions to remove this requirement, but I feel there must be a more elegant solution. Perhaps it is time to rethink how this works in Playmaker? Could they look in previous states instead, for a suitable AddComponent or similar, before throwing an error?
« Last Edit: November 21, 2012, 12:45:58 PM by dasbin »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3643
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Remove or rethink [RequiredComponent]
« Reply #1 on: November 21, 2012, 04:13:31 PM »
You can go into Preferences > Error Checker and disable Check for Required Components.

But I agree there's some room for improvement here...
« Last Edit: November 21, 2012, 04:51:48 PM by Alex Chouls »