15 lines
No EOL
497 B
C#
15 lines
No EOL
497 B
C#
using System.Collections.Generic;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Module.ProjectValidator.Editor
|
|
{
|
|
internal sealed class GameObjectValidatorBrokenPrefab : IGameObjectValidator
|
|
{
|
|
public void Validate(GameObject gameObject, List<ValidatorResult> results)
|
|
{
|
|
if (PrefabUtility.IsPrefabAssetMissing(gameObject))
|
|
results.Add(ValidatorResult.Create(EValidatorSeverity.Error, "GameObject is missing prefab asset"));
|
|
}
|
|
}
|
|
} |