Skip to content

IncorrectPreviewsValidator

ClassAssetInventoryAssetInventory.Editor
public sealed class IncorrectPreviewsValidator : Validator

Finds cached previews that contain error shaders, Unity's generic fallback icons or empty renders, or a background that no longer matches the preview settings.

public IncorrectPreviewsValidator()

public override Task Validate()

Scans the active catalog or storage for this validator’s issue type and records findings without modifying customer data.

Returns

System.Threading.Tasks.Task

public Task Validate(List<AssetInfo> files)

Checks the supplied preview records for error shaders, generic fallback icons and outdated backgrounds and records the affected files.

Parameters

NameType
filesSystem.Collections.Generic.List{AssetInventory.AssetInfo}

Returns

System.Threading.Tasks.Task

public IncorrectPreviewsValidator.IssueType GetIssueType(AssetInfo info)

Returns why the preview of a reported file was flagged.

Parameters

NameType
infoAssetInventory.AssetInfo

Returns

AssetInventory.IncorrectPreviewsValidator.IssueType

public int CountIssues(IncorrectPreviewsValidator.IssueType type)

Counts the reported previews of one issue type.

Parameters

NameType
typeAssetInventory.IncorrectPreviewsValidator.IssueType

Returns

System.Int32

public override Task Fix()

Repairs findings recorded by the most recent validation pass, then refreshes the validator state and results.

Returns

System.Threading.Tasks.Task