Skip to content

Tuple Support #3

@danikaze

Description

@danikaze

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions