PARTICLE_SIZE_DESC.generated.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Particles
  7. * @{
  8. */
  9. /// <summary>Structure used for initializing a ParticleSize object.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct ParticleSizeOptions
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static ParticleSizeOptions Default()
  15. {
  16. ParticleSizeOptions value = new ParticleSizeOptions();
  17. value.size = new FloatDistribution(1f);
  18. value.size3D = null;
  19. value.use3DSize = false;
  20. return value;
  21. }
  22. /// <summary>
  23. /// Determines the uniform size of the particles evaluated over particle lifetime. Only used if 3D size is disabled.
  24. /// </summary>
  25. public FloatDistribution size;
  26. /// <summary>
  27. /// Determines the non-uniform size of the particles evaluated over particle lifetime. Only used if 3D size is enabled.
  28. /// </summary>
  29. public Vector3Distribution size3D;
  30. /// <summary>
  31. /// Determines should the size be evaluated uniformly for all dimensions, or evaluate each dimension with its own
  32. /// distribution.
  33. /// </summary>
  34. public bool use3DSize;
  35. }
  36. /** @} */
  37. }