- Home /
List Of Unity's Magic Methods
Is there a list of all unity's magic methods? Like "OnCollisionEnter", "OnCollisionStay", etc? I know theres a docs page
But on the official docs page there isn't a list of magic methods.
if you are using C# in Visual Studio, you can also press CTRL+SHIFT+Q in the code editor to get a list of methods you can implement.
Answer by aditya · Oct 04, 2016 at 04:58 AM
Here you go Monobehaviour Script Reference
Please accept the answer if it helped
Answer by geo-p · Oct 04, 2016 at 05:14 AM
Check out the docs for MonoBehaviour: https://docs.unity3d.com/ScriptReference/MonoBehaviour.html
Answer by guillaume500 · Apr 22, 2021 at 09:08 PM
Just type Ctrl + Shift + M in Visual Studio, in your class derived from MonoBehavior and it will pop-up a Windows with all the Methods you can add from MonoBehavior class. In this window you can check the methods you want ( Awake(), OnUpdate(), ...) and see the one you already have implemented. And if you leave the mouse on the method's name you will have a tooltip explaining what the method does !!!!
Your answer
Follow this Question
Related Questions
Brackeys Inventory System doubts... 2 Answers
Make Enemys randomly spawn of the screen? 1 Answer
Particles - Moving a long 1 Answer
AngryBots mobile joysticks position 0 Answers