The default behavior of InvokeMethod is when we first add the command then assign an object, the targetComponent would be blank by default and Unity will throw ArgumentException error if targetComponent was left unassigned.
Important Notes
My change does not require modifcations or additions to documentation
Description
No null check for targetComponent in InvokeMethod
What is the current behavior?
The default behavior of InvokeMethod is when we first add the command then assign an object, the targetComponent would be blank by default and Unity will throw ArgumentException error if targetComponent was left unassigned.
Important Notes
Other information