Hi,
I would like the ability to link a user defined class to unity classes. Usually this is done with a “tag” member, but this member has already been used by unity for a similar but very restrictive implementation.
To be clear, what I’d like to do is something like:
class MyClass
{
}
// Later on...
GameObject t = ...;// Some game objects
t.userTag = new MyClass();
An alternative (and more powerful) method of achieving this is to allow users to inherit from Unity classes. At the moment classes like GameObject are marked as “sealed” (in C#). Allowing us to inherit from unity classes would be of great benefit to developers, although I understand that due to implementation details this may not be possible, in which case a generic user field will suffice.
Many thanks.