PARTICLE_TEXTURE_ANIMATION_DESC.generated.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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 ParticleTextureAnimation object.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct ParticleTextureAnimationOptions
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static ParticleTextureAnimationOptions Default()
  15. {
  16. ParticleTextureAnimationOptions value = new ParticleTextureAnimationOptions();
  17. value.randomizeRow = false;
  18. value.numCycles = 1;
  19. return value;
  20. }
  21. /// <summary>
  22. /// Randomly pick a row to use for animation when the particle is first spawned. This implies that only a single row of
  23. /// the grid will be used for individual particle's animation.
  24. /// </summary>
  25. public bool randomizeRow;
  26. /// <summary>Number of cycles to loop the animation during particle's lifetime.</summary>
  27. public uint numCycles;
  28. }
  29. /** @} */
  30. }