Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EditorButtonAttribute] #31

Closed
ArcueidD opened this issue Jan 27, 2022 · 2 comments
Closed

[EditorButtonAttribute] #31

ArcueidD opened this issue Jan 27, 2022 · 2 comments

Comments

@ArcueidD
Copy link

Good day.

I have a question about EditorButtonAttribute. Why it's AttributeUsage has AttributeTargets.Field? Using reflection, you can make AttributeTargets for method.

@arimger
Copy link
Owner

arimger commented Jan 27, 2022

Hello,

[EditorButtonAttribute] is currently limited to fields by design. In the current implementation, inspector buttons are treated as decorators. A bit more detail has been discussed here.

@ArcueidD
Copy link
Author

Oh sorry, this issue is duplicate) I'll close it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants