How the Check Works
The CheckIncorrectLightSettings
operates at the GameObject level and performs the following functions:
GameObject Verification: When applied to a GameObject, this check inspects the GameObject’s lighting settings. It checks for inconsistencies such as low shadow resolution, excessive range, or intensity. If the GameObject has a Light component and meets specific criteria, it reports issues.
When to Use This Check
- Quality Assurance: To ensure that the lighting settings in your Unity project are configured correctly and do not have common issues that could affect the visual quality of your game.
How to Use the Check
- Add the Check Component: Attach the
CheckIncorrectLightSettings
component to GameObjects in your scene or prefab that have light sources you want to verify. - Runtime or Manual Trigger: During runtime or when manually triggered, this check will examine the GameObject’s lighting settings and report any inconsistencies found.
Methods
PerformCheck(GameObject obj)
: Initiates the verification process for GameObjects. It examines the lighting settings of the provided GameObject and reports any issues that violate the specified criteria.
Attributes
longDescription
: Provides a description of what this check does, explaining its purpose and the types of lighting settings it evaluates.