No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HasStateGraph.cs 720B

12345678910111213141516171819202122
  1. using System;
  2. using JetBrains.Annotations;
  3. using UnityEngine;
  4. namespace Unity.VisualScripting
  5. {
  6. /// <summary>
  7. /// Check if a GameObject or StateMachine has a StateGraph
  8. /// </summary>
  9. [TypeIcon(typeof(StateGraph))]
  10. [UnitCategory("Graphs/Graph Nodes")]
  11. public sealed class HasStateGraph : HasGraph<StateGraph, StateGraphAsset, StateMachine>
  12. {
  13. /// <summary>
  14. /// The type of object that handles the graph.
  15. /// </summary>
  16. [Serialize, Inspectable, UnitHeaderInspectable, UsedImplicitly]
  17. public StateGraphContainerType containerType { get; set; }
  18. protected override bool isGameObject => containerType == StateGraphContainerType.GameObject;
  19. }
  20. }