Author Topic: Suggestion: Make TNObject.FindAndExecute log more verbose.  (Read 2964 times)

RFCsDriveMeNuts

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 12
    • View Profile
Suggestion: Make TNObject.FindAndExecute log more verbose.
« on: March 04, 2014, 01:26:31 PM »
This is something I did on my own, and later found you had suggested to another user in the forums:

  1.                                
  2. Debug.LogError("Unable to execute function with ID of '" + funcID + "'. Make sure there is a script alongside TNObject ID " + objID + " that can receive this call.\nGameObject: " + GetHierarchy(obj.gameObject), obj.gameObject);
  3.  

This will make tracing RFC ID mistakes easier to track down when you have complex objects or similar objects.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Suggestion: Make TNObject.FindAndExecute log more verbose.
« Reply #1 on: March 05, 2014, 08:52:37 AM »
Why though? You can just click on the error message to have the TNObject get highlighted for you.