Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BakeTrailsMesh

Creates a snapshot of ParticleSystem Trails and stores them in a mesh.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule

BakeTrailsMesh(Mesh, bool)

Creates a snapshot of ParticleSystem Trails and stores them in a
mesh
.
Warning
Deprecated. BakeTrailsMesh with useTransform is deprecated. Use BakeTrailsMesh with ParticleSystemBakeMeshOptions instead.
public void BakeTrailsMesh(Mesh mesh, bool useTransform = false)

Parameters

mesh

A static Mesh to receive the snapshot of the particle trails.

useTransform

Specifies whether to include the rotation and scale of the Transform in the baked Mesh.

BakeTrailsMesh(Mesh, Camera, bool)

Creates a snapshot of ParticleSystem Trails and stores them in a
mesh
.
Warning
Deprecated. BakeTrailsMesh with useTransform is deprecated. Use BakeTrailsMesh with ParticleSystemBakeMeshOptions instead.
public void BakeTrailsMesh(Mesh mesh, Camera camera, bool useTransform = false)

Parameters

mesh

A static Mesh to receive the snapshot of the particle trails.

camera

The Camera used to determine which way camera-space trails face.

useTransform

Specifies whether to include the rotation and scale of the Transform in the baked Mesh.

BakeTrailsMesh(Mesh, ParticleSystemBakeMeshOptions)

Creates a snapshot of ParticleSystem Trails and stores them in a
mesh
.
public void BakeTrailsMesh(Mesh mesh, ParticleSystemBakeMeshOptions options)

Parameters

mesh

A static Mesh to receive the snapshot of the particle trails.

Specifies whether to include the rotation and scale of the Transform in the baked Mesh.

BakeTrailsMesh(Mesh, Camera, ParticleSystemBakeMeshOptions)

Creates a snapshot of ParticleSystem Trails and stores them in a
mesh
.
public void BakeTrailsMesh(Mesh mesh, Camera camera, ParticleSystemBakeMeshOptions options)

Parameters

mesh

A static Mesh to receive the snapshot of the particle trails.

camera

The Camera used to determine which way camera-space trails face.

Specifies whether to include the rotation and scale of the Transform in the baked Mesh.