TestSlot.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. using UnityEditor.Graphing;
  2. namespace UnityEditor.ShaderGraph
  3. {
  4. class TestSlot : MaterialSlot
  5. {
  6. public TestSlot() {}
  7. public TestSlot(int slotId, string displayName, SlotType slotType, ShaderStageCapability stageCapability = ShaderStageCapability.All, bool hidden = false)
  8. : base(slotId, displayName, displayName, slotType, stageCapability, hidden) {}
  9. public TestSlot(int slotId, string displayName, SlotType slotType, int priority, ShaderStageCapability stageCapability = ShaderStageCapability.All, bool hidden = false)
  10. : base(slotId, displayName, displayName, slotType, priority, stageCapability, hidden) {}
  11. public override SlotValueType valueType
  12. {
  13. get { return SlotValueType.Vector4; }
  14. }
  15. public override ConcreteSlotValueType concreteValueType
  16. {
  17. get { return ConcreteSlotValueType.Vector4; }
  18. }
  19. public override void AddDefaultProperty(PropertyCollector properties, GenerationMode generationMode)
  20. {
  21. }
  22. public override void CopyValuesFrom(MaterialSlot foundSlot)
  23. {
  24. }
  25. }
  26. }