O'Reilly logo

Game Development with Unity®, Second Edition by Bryan Wagstaff, Michelle Menard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX BCOMMON CLASSES

Following is a list of some of the more commonly used classes, with a breakdown of some of their important members.

MonoBehaviour

Every script derives from MonoBehaviour (note the British spelling of “behaviour”). JavaScript automatically derives from this class, whereas C# and Boo must explicitly derive it.

Functions of the MonoBehaviour class are as follows:

images Update():void: Called every frame, and is the most often used function to implement game logic and behavior.

images LateUpdate():void: Called after all updates have finished ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required