PARTICLE_STATIC_MESH_SHAPE_DESC.generated.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Particles
  7. * @{
  8. */
  9. /// <summary>Information describing a ParticleEmitterStaticMeshShape.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct ParticleStaticMeshShapeOptions
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static ParticleStaticMeshShapeOptions Default()
  15. {
  16. ParticleStaticMeshShapeOptions value = new ParticleStaticMeshShapeOptions();
  17. value.type = ParticleEmitterMeshType.Triangle;
  18. value.sequential = false;
  19. value.mesh = null;
  20. return value;
  21. }
  22. /// <summary>Determines from which portion of the mesh are the particles emitted from.</summary>
  23. public ParticleEmitterMeshType type;
  24. /// <summary>
  25. /// When enabled the particles will be emitted sequentially from mesh vertices in the order they are defined. Only
  26. /// relevant for the Vertex emit mode.
  27. /// </summary>
  28. public bool sequential;
  29. /// <summary>
  30. /// Mesh to spawn particles on. Must at least contain per-vertex position data encoded as 3D float vectors. Can
  31. /// optionally contain per-vertex normals encoded as 3D float vectors or as 4-byte unsigned-normalized format.
  32. /// </summary>
  33. public RRef<Mesh> mesh;
  34. }
  35. /** @} */
  36. }