Reply To: Constraints generic tasks

Forums 💬 NodeCanvas 🤩 Custom Nodes and Tasks Constraints generic tasks Reply To: Constraints generic tasks

#12825
cywil
Participant

    Hi,
    it works, thanks! But still fails with any other constraint than enum.
    E.g.
    public class TestAction<T> : ActionTask where T : MyAbstractClass
    public class TestAction<T> : ActionTask where T : IMyInterface
    I added these types to the list.

    So the issue is a bit more complex here. If so, an appropriate notice in the Generic tasksAOTdocs section can be helpful. If it’s hard or impossible to generate such dummies it would be nice to have errors/warnings on AOT created also.