![Schaken-Mods](/assets/img/avatar_default.png)
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
30 lines
1001 B
C#
30 lines
1001 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Unity.VisualScripting
|
|
{
|
|
[Analyser(typeof(INesterStateTransition))]
|
|
public class NesterStateTransitionAnalyser<TGraphNesterStateTransition> : StateTransitionAnalyser<TGraphNesterStateTransition>
|
|
where TGraphNesterStateTransition : class, INesterStateTransition
|
|
{
|
|
public NesterStateTransitionAnalyser(GraphReference reference, TGraphNesterStateTransition transition) : base(reference, transition) { }
|
|
|
|
protected override IEnumerable<Warning> Warnings()
|
|
{
|
|
foreach (var baseWarning in base.Warnings())
|
|
{
|
|
yield return baseWarning;
|
|
}
|
|
|
|
if (transition.childGraph == null)
|
|
{
|
|
yield return Warning.Caution("Missing transition graph.");
|
|
}
|
|
|
|
if (transition.nest.hasBackgroundEmbed)
|
|
{
|
|
yield return Warning.Caution("Background embed graph detected.");
|
|
}
|
|
}
|
|
}
|
|
}
|