Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

IShaderNodeView.cs 910B

123456789101112131415161718192021222324252627
  1. using System;
  2. using UnityEditor.Experimental.GraphView;
  3. using UnityEditor.Graphing;
  4. using UnityEditor.Rendering;
  5. using UnityEditor.ShaderGraph.Drawing;
  6. using UnityEngine;
  7. using UnityEngine.UIElements;
  8. namespace UnityEditor.ShaderGraph
  9. {
  10. interface IShaderNodeView : IDisposable
  11. {
  12. Node gvNode { get; }
  13. AbstractMaterialNode node { get; }
  14. VisualElement colorElement { get; }
  15. void SetColor(Color newColor);
  16. void ResetColor();
  17. void UpdatePortInputTypes();
  18. void UpdateDropdownEntries();
  19. void OnModified(ModificationScope scope);
  20. void AttachMessage(string errString, ShaderCompilerMessageSeverity severity);
  21. void ClearMessage();
  22. // Searches the ports on this node for one that matches the given slot.
  23. // Returns true if found, false if not.
  24. bool FindPort(SlotReference slot, out ShaderPort port);
  25. }
  26. }