How the Check Works
This check examines audio import settings for audio clips within specified project folders. It compares these settings against the desired preferences you’ve defined. If any discrepancies are detected, the check logs them as issues.
When to Use This Check
- Ensure Consistency: Maintain uniform audio import settings across different folders in your Unity project.
- Prevent Errors: Catch and rectify import setting discrepancies early, reducing the risk of runtime issues.
- Customize for Folders: Tailor audio import settings for specific project directories.
How to Use the Check
- Specify Import Profile: Create a Import-Settings Profile and set a configuration for your use:
Create → Sparrow → Verification → Import-Settings - Folder Configuration: Specify the folders containing the sprites you want to inspect. Set the import settings criteria for each folder.
- Performing Checks: Call the
PerformCheck(AudioClip clip)
method to check the import settings of an audio clip. If discrepancies are found, they will be logged as issues.
Methods
PerformCheck(AudioClip clip)
: Checks the import settings of an audio clip for discrepancies.ClipImportSettingsAreValid(ImportSettingsAudio presetToUse, UnityEngine.Object clip)
: Validates if the import settings of an audio clip match the desired preset settings.
Attributes
longDescription
: Provides a description of what this check does.SingleFolder
class: Defines folder-specific import settings.m_Folders
: A list of folder-specific import settings.m_wrongSettings
: A list used to collect import settings that don’t match the expected values.m_TOLERANCE
: A constant value used for tolerance comparisons.