Version: 2023.1
public void BakeMesh (Mesh mesh, ParticleSystemBakeMeshOptions options);
public void BakeMesh (Mesh mesh, Camera camera, ParticleSystemBakeMeshOptions options);
Obsolete public void BakeMesh (Mesh mesh, bool useTransform);
Obsolete public void BakeMesh (Mesh mesh, Camera camera, bool useTransform);

参数

mesh 要接收粒子快照的静态网格。
camera 用于确定摄像机空间粒子面向方向的摄像机。
options 指定如何在烘焙网格中包含变换组件的旋转和缩放。
useTransform 指定如何在烘焙网格中包含变换组件的旋转和缩放。

描述

Creates a snapshot of ParticleSystemRenderer and stores it in a mesh.