Class Implementation (Like regular Java)

I’m thinking of creating classes or something similar to implement a new feature in one of my games. Are there ways to create and use classes similar to regular Java in PlayCanvas? If not, are there any similar options?

Yes, PlayCanvas already uses classes. If you create a new Script in the editor, you can see that it creates a class template.

You can define a class different ways in JavaScript too

1 Like

Thanks! I’ll look into this