IncorrectPreviewsValidator
public sealed class IncorrectPreviewsValidator : ValidatorFinds cached previews that contain error shaders or Unity’s generic fallback icons.
Constructors
Section titled “Constructors”
IncorrectPreviewsValidator()
Section titled “IncorrectPreviewsValidator()”public IncorrectPreviewsValidator()Methods
Section titled “Methods”
Validate()
Section titled “Validate()”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
Validate(List)
Section titled “Validate(List)”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