Join Kelley Hecker for an in-depth discussion in this video Introducing Component and MonoBehaviour, part of Scripting Unity with C#.
- You might have noticed that the script we made…in the last chapter extended from MonoBehaviour.…With few exceptions,…like scriptable objects and editor scripts,…which we won't cover in this course,…every script you write will extend from MonoBehaviour.…Unity is very component-based.…When you combined a stinch of reusable components…to achieve your desired functionality.…In Unity, a component is anything you attach…to a GameObject, such as lights, colliders,…renderers and scripts.…So what is a MonoBehaviour?…A MonoBehaviour is any script…that can be attached a GameObject.…
If your script doesn't extend from MonoBehaviour,…you won't be able to attach it to an object in your scene.…So all script components are MonoBehaviours.…The MonoBehaviour class also includes…many useful functions and events.…
- Defining classes and variables
- Attaching scripts to objects
- Understanding MonoBehaviour class
- Using the Unity Scripting API
- Importing assets
- Using a singleton pattern to manage game state
- Creating an event
Skill Level Intermediate
Advanced Unity 3D Game Programmingwith Michael House3h 45m Advanced
Creating Mobile Games with Unitywith Kelley Hecker1h 12m Intermediate
1. Your First Script
3. Built-In Unity Classes
Picking up coins4m 8s
5. Events and Delegates
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.