How the Check Works
This check is designed to detect extremely large texture sizes within your project. It examines the size of individual textures and compares them against a specified maximum limit.
The check operates as follows:
- Maximum Size Definition: You can set the maximum allowed texture size in pixels. This value can be customized to suit your project’s requirements.
- Texture Inspection: The check inspects each texture in your project.
- Size Comparison: It compares the width and height of each texture against the maximum size limit.
- Issue Identification: If a texture’s dimensions exceed the specified maximum size, the check logs it as an issue.
When to Use This Check
- Build Size Optimization: To ensure that extremely large textures that can significantly increase your project’s build size are detected and managed.
How to Use the Check
- Maximum Size Configuration: Define the maximum allowed size for textures in pixels.
- Perform Checks: Call the
PerformCheck(Texture2D texture)
method on the textures you want to inspect. If a texture’s dimensions exceed the maximum size limit, it’s logged as an issue.
Methods
DrawSpecificProfileEditor()
: Custom method for configuring the maximum allowed texture size.PerformCheck(Texture2D texture)
: Initiates the verification process for a specific Texture2D texture. It checks the texture’s dimensions against the specified maximum size limit.
Attributes
longDescription
: Provides a description of what this check does, explaining its purpose in detecting excessively large texture sizes.