暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SetStateGraph.cs 624B

12345678910111213141516171819
  1. using JetBrains.Annotations;
  2. namespace Unity.VisualScripting
  3. {
  4. /// <summary>
  5. /// Set a StateGraphAsset to a StateMachine
  6. /// </summary>
  7. [TypeIcon(typeof(StateGraph))]
  8. public class SetStateGraph : SetGraph<StateGraph, StateGraphAsset, StateMachine>
  9. {
  10. /// <summary>
  11. /// The type of object that handles the graph.
  12. /// </summary>
  13. [Serialize, Inspectable, UnitHeaderInspectable, UsedImplicitly]
  14. public StateGraphContainerType containerType { get; set; }
  15. protected override bool isGameObject => containerType == StateGraphContainerType.GameObject;
  16. }
  17. }