Added component validators
This commit is contained in:
parent
35f271e12b
commit
d7145ad772
30 changed files with 448 additions and 200 deletions
|
|
@ -0,0 +1,14 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Module.ProjectValidator.Editor
|
||||
{
|
||||
internal sealed class ComponentValidatorMeshCollider : IComponentValidator<MeshCollider>
|
||||
{
|
||||
public void Validate(MeshCollider component, List<ValidatorResult> results)
|
||||
{
|
||||
if (component.sharedMesh == null)
|
||||
results.Add(ValidatorResult.Create(EValidatorSeverity.Error, "Missing mesh"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue