I'm doing some tests on Unity for me to practice programming. I'm a beginner and this question can be kind of stupid. I want to know if this is possible:
I created the following abstract class:
public abstract class Variable<T> : ScriptableObject {}
And I want to use this class as a variable that will accept children of that class:
private Variable<Int> variable;
But I want the variable to accept children of any kind and not just declared something like:
private Variable variable;
Is this possible?