O'Reilly logo

Unity 3 Game Development HOTSHOT by Jate Wittayabundit

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

Limited interface support

While Unity's JavaScript does support inheritance and interfaces, it has very limiting caveat that you can either inherit your class from an existing class, or declare one interface.

JavaScript (only one allowed):

class MyClass extends MyObject {...}

C#:

class MyClass : MonoBehaviour, IMyObject, IMyItem {...}

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