How the Check Works
- GameObject Inspection: When invoked on a GameObject, CheckAttributes examines all the MonoBehaviour components attached to the GameObject. For each attribute applied to fields within these components, it checks if it should be activated based on its severity level.
- ScriptableObject Inspection: When invoked on a ScriptableObject, it inspects the fields of the ScriptableObject for attributes and applies the specified severity levels.
- Changes Tracking: The tool tracks changes made to the severity levels or activation status of attributes, allowing you to customize the validation process.
- Initialization: During the initialization phase, it populates the list of attribute severities with default settings for attributes implemented in your project.
When to Use This Check
- Attribute Validation: To ensure that the attributes used in your C# scripts are properly configured and validated with the desired severity levels.
- Custom Attribute Management: When you want to have granular control over how different attributes are treated in your project.
How to Use the Check
- Configuration: You can customize the severity levels and activation status for individual attributes. This allows you to tailor the validation process to your project’s needs.
⭐ For more specific Infos: Attributes
Methods
PerformCheck(GameObject gameObject)
: Initiates the verification process for a specific GameObject. It checks all MonoBehaviour components attached to the GameObject for attribute-related issues.PerformCheck(ScriptableObject obj)
: Initiates the verification process for a specific ScriptableObject. It analyzes the fields of the ScriptableObject for attribute-related issues.
Attributes
longDescription
: Provides a detailed description of what this tool does, explaining its purpose in managing and validating attributes within your Unity project.