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.

TestSlot.cs 1021B

123456789101112131415161718192021222324252627282930313233343536
  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 override SlotValueType valueType
  10. {
  11. get { return SlotValueType.Vector4; }
  12. }
  13. public override ConcreteSlotValueType concreteValueType
  14. {
  15. get { return ConcreteSlotValueType.Vector4; }
  16. }
  17. public override bool isDefaultValue => true;
  18. public override void AddDefaultProperty(PropertyCollector properties, GenerationMode generationMode)
  19. {
  20. }
  21. public override void CopyDefaultValue(MaterialSlot other)
  22. {
  23. }
  24. public override void CopyValuesFrom(MaterialSlot foundSlot)
  25. {
  26. }
  27. }
  28. }