IncorrectPreviewsValidator
public sealed class IncorrectPreviewsValidator : ValidatorFinds cached previews that contain error shaders, Unity's generic fallback icons or empty renders, or a background that no longer matches the preview settings.
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, generic fallback icons and outdated backgrounds and records the affected files.
Parameters
| Name | Type |
|---|---|
files | System.Collections.Generic.List{AssetInventory.AssetInfo} |
Returns
System.Threading.Tasks.Task
GetIssueType(AssetInfo)
Section titled “GetIssueType(AssetInfo)”public IncorrectPreviewsValidator.IssueType GetIssueType(AssetInfo info)Returns why the preview of a reported file was flagged.
Parameters
| Name | Type |
|---|---|
info | AssetInventory.AssetInfo |
Returns
AssetInventory.IncorrectPreviewsValidator.IssueType
CountIssues(IssueType)
Section titled “CountIssues(IssueType)”public int CountIssues(IncorrectPreviewsValidator.IssueType type)Counts the reported previews of one issue type.
Parameters
| Name | Type |
|---|---|
type | AssetInventory.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