BakeMesh
Creates a snapshot of ParticleSystemRenderer and stores it in a mesh.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.ParticleSystemModule
BakeMesh(Mesh, bool)
Creates a snapshot of ParticleSystemRenderer and stores it in a .
meshpublic void BakeMesh(Mesh mesh, bool useTransform = false)
Parameters
BakeMesh(Mesh, Camera, bool)
Creates a snapshot of ParticleSystemRenderer and stores it in a .
meshpublic void BakeMesh(Mesh mesh, Camera camera, bool useTransform = false)
Parameters
BakeMesh(Mesh, ParticleSystemBakeMeshOptions)
Creates a snapshot of ParticleSystemRenderer and stores it in a .
meshpublic void BakeMesh(Mesh mesh, ParticleSystemBakeMeshOptions options)
Parameters
A static Mesh to receive the snapshot of the particles.
Specifies whether to include the rotation and scale of the Transform in the baked Mesh.
BakeMesh(Mesh, Camera, ParticleSystemBakeMeshOptions)
Creates a snapshot of ParticleSystemRenderer and stores it in a .
meshpublic void BakeMesh(Mesh mesh, Camera camera, ParticleSystemBakeMeshOptions options)
Parameters
A static Mesh to receive the snapshot of the particles.
The Camera used to determine which way camera-space particles face.
Specifies whether to include the rotation and scale of the Transform in the baked Mesh.