/
TON618OFF
/
Unity-Project-RTU
Обзор
Документация
Войти
/
TON618OFF
/
Unity-Project-RTU
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Library/PackageCache/com.unity.visualscripting@1.9.4/Editor/VisualScripting.State/States/NesterStateAnalyser.cs
29 строк
867 B
TON618OFF
release
03 окт 2024, 22:20
03 окт 2024, 22:20
7c70e9f
Код
Авторство
О чём код?
using System.Collections.Generic; namespace Unity.VisualScripting { [Analyser(typeof(INesterState))] public class NesterStateAnalyser<TNesterState> : StateAnalyser<TNesterState> where TNesterState : class, INesterState { public NesterStateAnalyser(GraphReference reference, TNesterState state) : base(reference, state) { } protected override IEnumerable<Warning> Warnings() { foreach (var baseWarning in base.Warnings()) { yield return baseWarning; } if (state.childGraph == null) { yield return Warning.Caution("Missing nested graph."); } if (state.nest.hasBackgroundEmbed) { yield return Warning.Caution("Background embed graph detected."); } } } }