Quantcast
Channel: Answers for "What's the difference between SendMessage and GetComponent?"
Browsing latest articles
Browse All 6 View Live

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 Article


Answer 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 Article


Answer 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
Browsing latest articles
Browse All 6 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>