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?
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;
Username
Password
Remember Me
By registering on this website you agree to our Privacy Policy.
Email
Confirm Password
Username or Email