Validator: Skipping render pipeline check on shader, fi no RenderPipeline tag is found
Validator: Skipping textures in material, if marked as PerRendererData, HideInInspector or NonModifiableTextureData Validator: Fixed issue, where arrays weren't iterated correctly, which resulted in an exception Window: Added warning and error count
This commit is contained in:
parent
9dd45f536e
commit
eb46c22ffc
7 changed files with 93 additions and 12 deletions
|
|
@ -423,8 +423,18 @@ namespace Module.ProjectValidator.Editor
|
|||
|
||||
var fieldPath = parentFieldPath;
|
||||
ProjectValidatorUtility.AppendToFieldPath(e.FieldInfo, ref fieldPath);
|
||||
|
||||
if (value is IEnumerable<object> ie)
|
||||
|
||||
if (value is Array arr)
|
||||
{
|
||||
for (var j = 0; j < arr.Length; j++)
|
||||
{
|
||||
var eObj = arr.GetValue(j);
|
||||
var fieldPathArrElement = fieldPath;
|
||||
ProjectValidatorUtility.AppendToFieldPath(j, ref fieldPathArrElement);
|
||||
Validate(assetGuid, relativePath, fieldPathArrElement, eObj, e.Entry, report);
|
||||
}
|
||||
}
|
||||
else if (value is IEnumerable<object> ie)
|
||||
{
|
||||
var idx = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue