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.

ScriptGraphAsset.cs 660B

123456789101112131415161718192021
  1. using UnityEngine;
  2. namespace Unity.VisualScripting
  3. {
  4. [TypeIcon(typeof(FlowGraph))]
  5. [CreateAssetMenu(menuName = "Visual Scripting/Script Graph", fileName = "New Script Graph", order = 81)]
  6. [HelpURL("https://docs.unity3d.com/Packages/com.unity.visualscripting@latest/index.html?subfolder=/manual/vs-script-graphs-intro.html")]
  7. public sealed class ScriptGraphAsset : Macro<FlowGraph>
  8. {
  9. [ContextMenu("Show Data...")]
  10. protected override void ShowData()
  11. {
  12. base.ShowData();
  13. }
  14. public override FlowGraph DefaultGraph()
  15. {
  16. return FlowGraph.WithInputOutput();
  17. }
  18. }
  19. }