Hide Attribute in Custom Resource #125
-
Is there a way to hide a single attribute in a resource that has multiple? For example, in this code I don't want "board" to show up in the egui but I still want num to. |
Beta Was this translation helpful? Give feedback.
Answered by
jakobhellermann
Feb 20, 2023
Replies: 1 comment
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
szammyboi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
#[reflect(ignore)]
. That way the field will be ignored by the inspector (and anything else usingReflect
).