JetBrains / JetBrains/resharper-unity

Inspection on Color values between 0 and 1

Open
#67 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

`UnityEngine.Color` takes RGB(A) values as a float between 0 and 1. There is no validation on the range. Add an inspection to give a warning if it's a constant value outside of that range.

See also `HSVToRGB`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.