Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

[RELEASED] Asset Validator

Discussion in 'Assets and Asset Store' started by OmniShader, Dec 7, 2023.

  1. OmniShader

    OmniShader

    Joined:
    Feb 12, 2022
    Posts:
    45


    Asset Validator on the Unity Asset Store

    Discord Support | Email


    Asset Validator is an editor tool which checks all assets and scenes in a project, ensuring correct and optimal configuration of prefab components, materials, textures, audio clips, scriptable objects, and more. It does this through a powerful validation framework that is fully customizable, and also integrates as a unit test into continuous integration tools such as Jenkins.


    Asset validation is an important part of any project, but particularly as it grows in assets and team size. Automatically ensuring proper configuration not only saves time debugging issues, but also often leads to major savings in runtime memory, load times, and build size.

    Included are pre-written validators to check for missing components, duplicate components, large textures, or assets marked Read/Write when they shouldn't be; these are easily over-ridable and customizable. In addition, this package also adds helpful C# attributes such as [Required] to ensure a field is assigned a non-empty value, and [ResourcePath] to ensure a field is a string or object of an asset in a Resources folder, facilitating Unity best practices.

    The validators in this package can be categorized as 3 kinds:
    • Asset validators - For validating any asset type such as materials, textures, audio clips, or scriptable objects.
    • Component validators - For validating components on prefabs or objects within scenes.
    • Field validators - For validating component fields such as the above-mentioned [Required] and [ResourcePath] attributes. These are also conveniently validated in real-time in the Inspector, rendering the field in red if there is an error.
    Included is a demo project which shows how to customize your own validators for textures, atlases, materials, audio clips, models, components, and scriptable objects. But please note that some C# coding is necessary to write your own custom validators to make the most of this package. The package provides a solid, battle-tested validation framework and UI, but with only sparsely filled base validators in order to be generally useful for any project.

    Included is also a unit test that runs the entire asset validation, which you may integrate as part of your CI build process to ensure all assets and scenes are checked automatically.

    Stop talking about Unity best practices, and make them a part of your development process!
     
    Last edited: Feb 14, 2024
  2. OmniShader

    OmniShader

    Joined:
    Feb 12, 2022
    Posts:
    45
    Last edited: Feb 28, 2024
    Deleted User likes this.