Search Unity

Create Generic Classes In Editor

Discussion in 'General Discussion' started by dannymate, Sep 13, 2021.

  1. dannymate

    dannymate

    Joined:
    Jan 29, 2019
    Posts:
    1
    So recently I've found a package for Unity: https://github.com/SolidAlloy/GenericUnityObjects. It does something that I've really wanted for a long time now and that is serialise generic ScriptableObjects and Monobehaviours to be used in the inspector without having to create a whole class for every token type.
    I.e. (There are good gifs that show what I mean on the git repo, it's a little hard to explain)
    ScriptableObject = Create > Class<Token> > Select Token Type.
    Monobehaviour = Add Component > Class<Token> > Select Token Type.

    Is this something that is even remotely in the thoughts of Unity developers at the moment? Is there any recent or planned future developments that implements even partially what this package does?

    Also this package requires .net4.x runtime so I'm just wondering if that will cause any compatibility issues with building for certain platforms or is it fine as long as it's just in editor stuff?