- Home /
Question by
CarlosTQ · Oct 17, 2011 at 06:48 PM ·
getcomponentsendmessage
about SendMessage
Hello World, I want to ask about...
GetComponent()
or
SendMessage()
Which is better?
and
Which one more efficiency??
Thanks!
Comment
Answer by BerggreenDK · Oct 17, 2011 at 08:30 PM
SendMessage is slow and globally.
What you can do instead is to initialize your references at Start/init time. Use GetComponent for that.
Answer by CarlosTQ · Oct 18, 2011 at 11:44 AM
Thank you
But I need in the collision detection of collision object GetComponent use
So can't Start in the time to use