Version: 2022.1
public ParticleSystem.Trails GetTrails ();

返回

Trails The variable to populate with the Trails that currently belong to the Particle System..

描述

返回与粒子系统轨迹的当前内部状态有关的所有数据。

如果未来要将粒子系统恢复到其当前状态,则存储此函数返回的轨迹,以及 ParticleSystem.GetParticlesParticleSystem.GetPlaybackState

另请参阅:TrailsSetTrailsGetPlaybackState


public int GetTrails (ref ParticleSystem.Trails trailData);

参数

trailData 属于粒子系统的当前轨迹。

返回

int The number of trails.

描述

如果未来要将粒子系统恢复到其当前状态,则存储此函数返回的轨迹,以及 ParticleSystem.GetParticlesParticleSystem.GetPlaybackState

This method allows you to get the trail data without creating any garbage, if you presize the trail data.

另请参阅:TrailsSetTrailsGetPlaybackState