Unity-Technologies / Unity-Technologies/Unity.Mathematics

Support [Min] attribute on float2, 3, 4

Open
#213 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.4k
Forks
159
PR merge metrics
No merged PRs in 30d

Description

As it currently stands, giving a float2 field a [Min(0)] attribute makes the inspector show it as an empty dropdown, rather than the expected effect of clamping the lower bound of the components to 0. This seems like a huge missed opportunity in terms of builtin feel.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by locating how the Unity inspector handles [Min(0)] on float2, float3, and float4 fields, then verify that the inspector presents component lower-bound clamping rather than an empty dropdown. Done means the requested attribute behavior works consistently for all three vector types.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
game-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.