Reply To: Could the node'task use custom class let the variable be used like CutomEditor?

NodeCanvas Forums General Discussion Could the node'task use custom class let the variable be used like CutomEditor? Reply To: Could the node'task use custom class let the variable be used like CutomEditor?

#15886
shortlin
Participant

Finally I found NodeCanvas could use ShowIfAttribute to do this.

public enum ENUM
{
showVar1,
showVar2

}

ENUM Kind;

[ShowIfAttribute(“Kind”, (int)ENUM.showVar1)]
public int var1;

[ShowIfAttribute(“Kind”, (int)ENUM.showVar2)]
public int var2;