暫無描述
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.

ContextData.cs 864B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEditor.Graphing;
  5. using UnityEditor.ShaderGraph.Internal;
  6. using UnityEditor.ShaderGraph.Serialization;
  7. namespace UnityEditor.ShaderGraph
  8. {
  9. [Serializable]
  10. sealed class ContextData
  11. {
  12. [SerializeField]
  13. Vector2 m_Position;
  14. [SerializeField]
  15. List<JsonRef<BlockNode>> m_Blocks = new List<JsonRef<BlockNode>>();
  16. [NonSerialized]
  17. ShaderStage m_ShaderStage;
  18. public ContextData()
  19. {
  20. }
  21. public List<JsonRef<BlockNode>> blocks => m_Blocks;
  22. public Vector2 position
  23. {
  24. get => m_Position;
  25. set => m_Position = value;
  26. }
  27. public ShaderStage shaderStage
  28. {
  29. get => m_ShaderStage;
  30. set => m_ShaderStage = value;
  31. }
  32. }
  33. }