Version: 2020.1
public void Simulate (float t);
public void Simulate (float t, bool withChildren);
public void Simulate (float t, bool withChildren, bool restart);
public void Simulate (float t, bool withChildren, bool restart, bool fixedTimeStep);

参数

t ParticleSystem 模拟快进的时间段(以秒为单位)。如果 restart 为 true,则将 ParticleSystem 重置为时间 0,然后从该值快进。如果 restart 为 false,则 ParticleSystem 模拟将从该时间指定的当前状态快进。
withChildren 还快进所有子代粒子系统。
restart 重新启动并从头开始。
fixedTimeStep 仅根据 Time 选项中的“固定时间”值以固定时间间隔更新系统。

描述

在给定时间段内模拟粒子以快进粒子系统,然后将其暂停。

另请参阅:PlayPause 函数。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961