Skip to content

IncorrectPreviewsValidator

ClassAssetInventoryAssetInventory.Editor
public sealed class IncorrectPreviewsValidator : Validator

Finds cached previews that contain error shaders or Unity’s generic fallback icons.

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 and generic fallback icons and records the affected files.

Parameters

Name Type
files System.Collections.Generic.List{AssetInventory.AssetInfo}

Returns

System.Threading.Tasks.Task

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