Author Topic: RFCs not being called on inactive objects  (Read 2589 times)

luvcraft

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 11
    • View Profile
RFCs not being called on inactive objects
« on: June 13, 2014, 01:25:12 PM »
I was getting the "Unable to execute function funcName. Did you forget an [RFC] prefix, perhaps?" error when I tried to call RFCs on inactive gameobjects, so I changed line 406 of TNObject.cs to:

      MonoBehaviour[] mbs = GetComponentsInChildren<MonoBehaviour>(true);

and that seems to have fixed it! Could you please apply this change to the project, or let me know if it's a bad idea? Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: RFCs not being called on inactive objects
« Reply #1 on: June 13, 2014, 10:32:43 PM »
Sure, I'll add it. But as a footnote, it's probably not a good idea to call RFCs on disabled objects.