Hia
I have a class that makes use of 5 separate classes. Each of the 5 classes will only ever be used as part of this first class so I didn’t want to create a separate file for each. This is even more true because of the fact that the reason I created the classes was merely for the purpose of having arrays of custom data when instantiating the first class.
So now I have 1 class that makes use of 5 more classes, all classes defined inside 1 script file. Now I want to extend the first class via a new subclass but to use it I must create a variable of the type of first class and use that variable inside my new script file. This works fine, but in the inspector all the variables of the first class are hidden underneath the member name I created…
the alternative is to create a new class that extends the first one but then I still need to create a variable of THAT class.
So my options are to have my subclass’s members visible in the inspector and have the main class’s members hidden inside one of those members, or I must have ALL members hidden inside a single member…
Is there no way of creating a subclass of the first class so that all the variables would be exposed in the root of the inspector?
Thanks in advance
p.s. I am using JavaScript, b.t.w…