Interfaces are a staple of good programming. They are "blueprints" for functionality and allow your code to be much more versatile, portable and understandable.
In this one-hour, project-based course, you'll learn how to implement interfaces in C# and, importantly, in the Unity Editor. You'll also create a Unity ScriptableObject that implements an interface and, on that basis, become interchangeable with GameObjects in exposed variables.
We will also cover different attributes that can provide convenience in coding and guidelines for designers wiring together the scene.
Interfaces are a staple of good programming. They are "blueprints" for functionality and allow your code to be much more versatile, portable and understandable.
In this one-hour, project-based course, you'll learn how to implement interfaces in C# and, importantly, in the Unity Editor. You'll also create a Unity ScriptableObject that implements an interface and, on that basis, become interchangeable with GameObjects in exposed variables.
We will also cover different attributes that can provide convenience in coding and guidelines for designers wiring together the scene.
The guided project will work with the following Unity concepts:
- Interfaces
- Inheritance
- ScriptableObjects
- Attributes
This is an intermediate-level course. As such a certain familiarity with Unity and C# is assumed. If you have never used interfaces or ScriptableObjects, please complete some beginner-level guided projects before attempting this project.
This project makes use of the tropical island-themed Unity project created in Create Animation Transitions in Unity (Intro to Animation 2) and in Make an Action Bar in Unity Part 1 - Modular Action System. These compliment this guided project and are recommended for a more well-rounded understanding of the concepts presented herein.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.