- Home /
list of pre defined functions like Update and OnTriggerEnter to use
There are many words that are placed after function javascript. Examples: OnCollisionEnter, OnMouseUp, Update. Could someone make a list of all of them? I know that there can be endless amounts when you use other parts such as BroadcastMessage("someWord"). But I just want to know all the common ones to know if I'm missing some of them. If there is a link to a list just send that. The reason I'm asking this question is because I haven't been able to find them on the scripting reference page. Thanks.
Answer by Mike 3 · Jul 30, 2010 at 05:00 PM
Here are the main runtime ones (under Overridable Functions):
http://unity3d.com/support/documentation/ScriptReference/MonoBehaviour.html
Answer by Ashkan_gc · Jul 30, 2010 at 06:09 PM
those functions are defined in Monobehaviour class. you override them to create new functionality. those functions are not virtual and unity uses reflection to call them and see if they exist or not.
i know that this info might not be important for the questioner but others will read this too.
indeed... and I am finding out that reflection is one progammer's best friend. (1 point up!) Thank you.
Your answer
Follow this Question
Related Questions
Setting Scroll View Width GUILayout 1 Answer
Can someone help me fix my Javascript for Flickering Light? 6 Answers
variable = true from another script 2 Answers
A node in a childnode? 1 Answer
Problem with List Sorting (JavaScript) 0 Answers