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

Tuple Support #3

Open
danikaze opened this issue Jun 25, 2024 · 0 comments
Open

Tuple Support #3

danikaze opened this issue Jun 25, 2024 · 0 comments

Comments

@danikaze
Copy link

danikaze commented Jun 25, 2024

This works great!
But I was wondering if this usage could be supported as well...

[SerializeField]
[MinMaxSlider(0f, 2f)]
private (float min, float max) intensity = (1f, 2f);

As it's easier to read than using 2 different variables and passing 4 parameters to MinMaxSlider (plus having to declare one as [HideInInspector])... or accessing via intensity.x and intensity.y when using a Vector2, which doesn't make much sense semantically

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

1 participant