↧
Answer by Squeegy
I would assume thatThere is no functional difference as long as only one script implements that method.GetComponent would be faster since it does not have to look for method on all attached...
View ArticleAnswer by dhendrix
SendMessage is quite a bit slower than GetComponent, though using it a few times per frame is not so bad, and it is much more convenient. Generally you only have to worry about it on iPhone...
View ArticleAnswer by Molix
Make sure you read that link carefully! It states that GetComponent is "probably at least as slow as" SendMessage. The performance gain comes from caching the reference to the target (i.e. calling...
View Article