|
2 | 2 | { |
3 | 3 | "method": "Awake", |
4 | 4 | "phase": "Initialization", |
5 | | - "description": "Called when the script instance is loaded. Used to initialize variables and references between scripts. Called even if the component is disabled.", |
| 5 | + "description": "MonoBehaviour.Awake callback.", |
6 | 6 | "runs_per_frame": false, |
7 | 7 | "thread": "main" |
8 | 8 | }, |
9 | 9 | { |
10 | 10 | "method": "OnEnable", |
11 | 11 | "phase": "Initialization", |
12 | | - "description": "Called when the object becomes enabled and active. Called immediately after Awake on first load, and each time the component is re-enabled.", |
| 12 | + "description": "MonoBehaviour.OnEnable callback.", |
13 | 13 | "runs_per_frame": false, |
14 | 14 | "thread": "main" |
15 | 15 | }, |
16 | 16 | { |
17 | 17 | "method": "Reset", |
18 | 18 | "phase": "Initialization", |
19 | | - "description": "Called in the editor only when the script is first attached or when Reset is selected in the context menu. Used to initialize default values.", |
| 19 | + "description": "MonoBehaviour.Reset callback.", |
20 | 20 | "runs_per_frame": false, |
21 | 21 | "thread": "main" |
22 | 22 | }, |
23 | 23 | { |
24 | 24 | "method": "Start", |
25 | 25 | "phase": "Initialization", |
26 | | - "description": "Called before the first frame update, only if the script instance is enabled. Called after all Awake calls. Use for setup that depends on other objects being initialized.", |
| 26 | + "description": "MonoBehaviour.Start callback.", |
27 | 27 | "runs_per_frame": false, |
28 | 28 | "thread": "main" |
29 | 29 | }, |
30 | 30 | { |
31 | 31 | "method": "FixedUpdate", |
32 | 32 | "phase": "Physics", |
33 | | - "description": "Called at a fixed time interval (default 0.02s). Used for physics calculations and Rigidbody manipulation. Independent of frame rate.", |
| 33 | + "description": "MonoBehaviour.FixedUpdate callback.", |
34 | 34 | "runs_per_frame": true, |
35 | 35 | "thread": "main" |
36 | 36 | }, |
37 | 37 | { |
38 | 38 | "method": "OnTriggerEnter", |
39 | 39 | "phase": "Physics", |
40 | | - "description": "Called when a Collider enters a trigger collider attached to this object. Requires at least one object to have a Rigidbody.", |
| 40 | + "description": "MonoBehaviour.OnTriggerEnter callback.", |
41 | 41 | "runs_per_frame": false, |
42 | 42 | "thread": "main" |
43 | 43 | }, |
44 | 44 | { |
45 | 45 | "method": "OnTriggerStay", |
46 | 46 | "phase": "Physics", |
47 | | - "description": "Called once per physics update for every Collider that is touching a trigger. Can fire multiple times per frame during physics catch-up.", |
| 47 | + "description": "MonoBehaviour.OnTriggerStay callback.", |
48 | 48 | "runs_per_frame": true, |
49 | 49 | "thread": "main" |
50 | 50 | }, |
51 | 51 | { |
52 | 52 | "method": "OnTriggerExit", |
53 | 53 | "phase": "Physics", |
54 | | - "description": "Called when a Collider stops touching a trigger collider attached to this object.", |
| 54 | + "description": "MonoBehaviour.OnTriggerExit callback.", |
55 | 55 | "runs_per_frame": false, |
56 | 56 | "thread": "main" |
57 | 57 | }, |
58 | 58 | { |
59 | 59 | "method": "OnCollisionEnter", |
60 | 60 | "phase": "Physics", |
61 | | - "description": "Called when a collision between two non-trigger colliders begins. Provides ContactPoint data for the impact.", |
| 61 | + "description": "MonoBehaviour.OnCollisionEnter callback.", |
62 | 62 | "runs_per_frame": false, |
63 | 63 | "thread": "main" |
64 | 64 | }, |
65 | 65 | { |
66 | 66 | "method": "OnCollisionStay", |
67 | 67 | "phase": "Physics", |
68 | | - "description": "Called once per physics update while two non-trigger colliders remain in contact.", |
| 68 | + "description": "MonoBehaviour.OnCollisionStay callback.", |
69 | 69 | "runs_per_frame": true, |
70 | 70 | "thread": "main" |
71 | 71 | }, |
72 | 72 | { |
73 | 73 | "method": "OnCollisionExit", |
74 | 74 | "phase": "Physics", |
75 | | - "description": "Called when a collision between two non-trigger colliders ends.", |
| 75 | + "description": "MonoBehaviour.OnCollisionExit callback.", |
76 | 76 | "runs_per_frame": false, |
77 | 77 | "thread": "main" |
78 | 78 | }, |
79 | 79 | { |
80 | 80 | "method": "Update", |
81 | 81 | "phase": "Game Logic", |
82 | | - "description": "Called once per frame. The main function for per-frame game logic. Frame rate dependent - use Time.deltaTime for consistent behavior.", |
| 82 | + "description": "MonoBehaviour.Update callback.", |
83 | 83 | "runs_per_frame": true, |
84 | 84 | "thread": "main" |
85 | 85 | }, |
86 | 86 | { |
87 | 87 | "method": "LateUpdate", |
88 | 88 | "phase": "Game Logic", |
89 | | - "description": "Called once per frame after all Update calls. Commonly used for camera follow logic and any processing that should happen after movement is complete.", |
| 89 | + "description": "MonoBehaviour.LateUpdate callback.", |
90 | 90 | "runs_per_frame": true, |
91 | 91 | "thread": "main" |
92 | 92 | }, |
93 | 93 | { |
94 | 94 | "method": "OnAnimatorMove", |
95 | 95 | "phase": "Animation", |
96 | | - "description": "Called at each frame after the state machines and animations have been evaluated but before OnAnimatorIK. Used to apply root motion manually.", |
| 96 | + "description": "MonoBehaviour.OnAnimatorMove callback.", |
97 | 97 | "runs_per_frame": true, |
98 | 98 | "thread": "main" |
99 | 99 | }, |
100 | 100 | { |
101 | 101 | "method": "OnAnimatorIK", |
102 | 102 | "phase": "Animation", |
103 | | - "description": "Called after the Animator has computed its final IK state. Used for setting up IK goals and weights for procedural animation.", |
| 103 | + "description": "MonoBehaviour.OnAnimatorIK callback.", |
104 | 104 | "runs_per_frame": true, |
105 | 105 | "thread": "main" |
106 | 106 | }, |
107 | 107 | { |
108 | | - "method": "OnGUI", |
| 108 | + "method": "OnPreCull", |
109 | 109 | "phase": "Rendering", |
110 | | - "description": "Called multiple times per frame for GUI event processing. Legacy IMGUI system - prefer UI Toolkit or uGUI for new projects.", |
| 110 | + "description": "MonoBehaviour.OnPreCull callback.", |
111 | 111 | "runs_per_frame": true, |
112 | 112 | "thread": "main" |
113 | 113 | }, |
114 | 114 | { |
115 | | - "method": "OnDrawGizmos", |
| 115 | + "method": "OnBecameVisible", |
| 116 | + "phase": "Rendering", |
| 117 | + "description": "MonoBehaviour.OnBecameVisible callback.", |
| 118 | + "runs_per_frame": false, |
| 119 | + "thread": "main" |
| 120 | + }, |
| 121 | + { |
| 122 | + "method": "OnBecameInvisible", |
| 123 | + "phase": "Rendering", |
| 124 | + "description": "MonoBehaviour.OnBecameInvisible callback.", |
| 125 | + "runs_per_frame": false, |
| 126 | + "thread": "main" |
| 127 | + }, |
| 128 | + { |
| 129 | + "method": "OnWillRenderObject", |
116 | 130 | "phase": "Rendering", |
117 | | - "description": "Called every frame in the editor when the object is visible. Used to draw debug visualization gizmos in the Scene view.", |
| 131 | + "description": "MonoBehaviour.OnWillRenderObject callback.", |
118 | 132 | "runs_per_frame": true, |
119 | 133 | "thread": "main" |
120 | 134 | }, |
121 | 135 | { |
122 | | - "method": "OnDrawGizmosSelected", |
| 136 | + "method": "OnPreRender", |
123 | 137 | "phase": "Rendering", |
124 | | - "description": "Called every frame in the editor only when the object is selected. Used for selection-specific debug visualizations.", |
| 138 | + "description": "MonoBehaviour.OnPreRender callback.", |
125 | 139 | "runs_per_frame": true, |
126 | 140 | "thread": "main" |
127 | 141 | }, |
128 | 142 | { |
129 | | - "method": "OnApplicationPause", |
130 | | - "phase": "Application", |
131 | | - "description": "Called when the application pauses or resumes (e.g., losing focus on mobile). Receives a bool indicating pause state.", |
132 | | - "runs_per_frame": false, |
| 143 | + "method": "OnRenderObject", |
| 144 | + "phase": "Rendering", |
| 145 | + "description": "MonoBehaviour.OnRenderObject callback.", |
| 146 | + "runs_per_frame": true, |
133 | 147 | "thread": "main" |
134 | 148 | }, |
135 | 149 | { |
136 | | - "method": "OnApplicationFocus", |
137 | | - "phase": "Application", |
138 | | - "description": "Called when the application gains or loses focus. Receives a bool indicating focus state. On mobile, maps to app foregrounding.", |
| 150 | + "method": "OnPostRender", |
| 151 | + "phase": "Rendering", |
| 152 | + "description": "MonoBehaviour.OnPostRender callback.", |
| 153 | + "runs_per_frame": true, |
| 154 | + "thread": "main" |
| 155 | + }, |
| 156 | + { |
| 157 | + "method": "OnRenderImage", |
| 158 | + "phase": "Rendering", |
| 159 | + "description": "MonoBehaviour.OnRenderImage callback.", |
| 160 | + "runs_per_frame": true, |
| 161 | + "thread": "main" |
| 162 | + }, |
| 163 | + { |
| 164 | + "method": "OnGUI", |
| 165 | + "phase": "GUI", |
| 166 | + "description": "MonoBehaviour.OnGUI callback.", |
| 167 | + "runs_per_frame": true, |
| 168 | + "thread": "main" |
| 169 | + }, |
| 170 | + { |
| 171 | + "method": "OnDrawGizmos", |
| 172 | + "phase": "Editor", |
| 173 | + "description": "MonoBehaviour.OnDrawGizmos callback.", |
| 174 | + "runs_per_frame": true, |
| 175 | + "thread": "main" |
| 176 | + }, |
| 177 | + { |
| 178 | + "method": "OnDrawGizmosSelected", |
| 179 | + "phase": "Editor", |
| 180 | + "description": "MonoBehaviour.OnDrawGizmosSelected callback.", |
139 | 181 | "runs_per_frame": false, |
140 | 182 | "thread": "main" |
141 | 183 | }, |
142 | 184 | { |
143 | | - "method": "OnDisable", |
144 | | - "phase": "Decommissioning", |
145 | | - "description": "Called when the behaviour becomes disabled. Also called when the object is destroyed or the scene is unloaded. Pair with OnEnable for event cleanup.", |
| 185 | + "method": "OnApplicationPause", |
| 186 | + "phase": "Application", |
| 187 | + "description": "MonoBehaviour.OnApplicationPause callback.", |
146 | 188 | "runs_per_frame": false, |
147 | 189 | "thread": "main" |
148 | 190 | }, |
149 | 191 | { |
150 | | - "method": "OnDestroy", |
151 | | - "phase": "Decommissioning", |
152 | | - "description": "Called when the MonoBehaviour is destroyed. Only called on objects that have previously been active. Used for final cleanup of resources.", |
| 192 | + "method": "OnApplicationFocus", |
| 193 | + "phase": "Application", |
| 194 | + "description": "MonoBehaviour.OnApplicationFocus callback.", |
153 | 195 | "runs_per_frame": false, |
154 | 196 | "thread": "main" |
155 | 197 | }, |
156 | 198 | { |
157 | 199 | "method": "OnApplicationQuit", |
158 | | - "phase": "Decommissioning", |
159 | | - "description": "Called before the application quits. On mobile platforms this is unreliable - use OnApplicationPause instead for save logic.", |
| 200 | + "phase": "Application", |
| 201 | + "description": "MonoBehaviour.OnApplicationQuit callback.", |
160 | 202 | "runs_per_frame": false, |
161 | 203 | "thread": "main" |
162 | 204 | }, |
163 | 205 | { |
164 | | - "method": "OnBecameVisible", |
165 | | - "phase": "Rendering", |
166 | | - "description": "Called when the attached Renderer becomes visible by any camera. Useful for enabling expensive per-frame logic only when visible.", |
| 206 | + "method": "OnDisable", |
| 207 | + "phase": "Decommissioning", |
| 208 | + "description": "MonoBehaviour.OnDisable callback.", |
167 | 209 | "runs_per_frame": false, |
168 | 210 | "thread": "main" |
169 | 211 | }, |
170 | 212 | { |
171 | | - "method": "OnBecameInvisible", |
172 | | - "phase": "Rendering", |
173 | | - "description": "Called when the attached Renderer is no longer visible by any camera. Use to disable expensive computation on off-screen objects.", |
| 213 | + "method": "OnDestroy", |
| 214 | + "phase": "Decommissioning", |
| 215 | + "description": "MonoBehaviour.OnDestroy callback.", |
174 | 216 | "runs_per_frame": false, |
175 | 217 | "thread": "main" |
176 | 218 | } |
|
0 commit comments