VFXDataSpawner.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using UnityEngine;
  5. using UnityEngine.Serialization;
  6. using UnityEngine.VFX;
  7. using System.Text;
  8. namespace UnityEditor.VFX
  9. {
  10. class VFXDataSpawner : VFXData
  11. {
  12. public override VFXDataType type => VFXDataType.SpawnEvent;
  13. public override void CopySettings<T>(T dst)
  14. {
  15. //There is nothing serialized here
  16. }
  17. public override void GenerateAttributeLayout(Dictionary<VFXContext, List<VFXContextLink>[]> effectiveFlowInputLinks)
  18. {
  19. }
  20. public override string GetAttributeDataDeclaration(VFXAttributeMode mode)
  21. {
  22. throw new NotImplementedException();
  23. }
  24. public override VFXDeviceTarget GetCompilationTarget(VFXContext context)
  25. {
  26. return VFXDeviceTarget.CPU;
  27. }
  28. public override string GetLoadAttributeCode(VFXAttribute attrib, VFXAttributeLocation location)
  29. {
  30. throw new NotImplementedException();
  31. }
  32. public override string GetStoreAttributeCode(VFXAttribute attrib, string value)
  33. {
  34. throw new NotImplementedException();
  35. }
  36. }
  37. }