SendMessage versus static method calls

I realized that declaring a method as static allows you to invoke the method directly from the script, for example:

MyScript.MyMethod()

Is there any downside to doing this compared to using SendMessage to invoke a method?

It’s faster, but doesn’t have the flexibility that SendMessage has (what with DontRequireReceiver and so on).

–Eric

Also, I believe that using SendMessage will get the message to the GO on the next frame, so there is a delay.

I am using SendMessage in my games where I need to communicate with a GO that I don’t already have a script reference to because the cost of doing a GetComponent is more that the cost of the delay in SendMessage.

For anything you already have a script reference to, definitely use the static function call method.

Wait, I don’t get it, why would you need a reference if the method is static?

Yes, sorry, I would never make it static… I meant having a reference to the script.

I was in a rush when I was typing that…

Seon:

I assume that you’d never make it static out of habit? That static methods are potentially (inherently?) dangerous, in that they are not protected?

Or do you have another reason for not making a static method?