资源简介
可循环,可单次播放脚本,PlayLoop ,PlayOnce 2个模式,需要在播放模式下使用,选中模型,右侧add Componet选中脚本即可使用

代码片段和文件信息
using UnityEngine;
using System.Collections;
public class ParticleAndAnimation : MonoBehaviour
{
void Start ()
{
PlayOnce();
}
[ContextMenu(“Play Loop“)]
public void PlayLoop()
{
ParticleSystem[] pss = GetComponentsInChildren(true);
foreach(ParticleSystem ps in pss)
{
ps.loop = true;
ps.Play();
}
Animation[] anis = GetComponentsInChildren(true);
foreach(Animation an in anis)
{
an.wrapMode = WrapMode.Loop;
an.Play();
}
}
[ContextMenu(“Play Once“)]
public void PlayOnce ()
{
ParticleSystem[] pss = GetComponentsInChildren(true);
foreach(ParticleSystem ps in pss)
{
ps.loop = false;
ps.Play();
}
Animation[] anis = GetComponentsInChildren(true);
foreach(Animation an in anis)
{
an.wrapMode = WrapMode.Once;
an.Play();
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-11-22 05:17 ParticleAndAnimation鑴氭湰\
文件 312 2019-11-22 05:17 __MACOSX\._ParticleAndAnimation鑴氭湰
文件 90 2013-06-05 02:20 ParticleAndAnimation鑴氭湰\Editor.me
文件 212 2013-06-05 02:20 __MACOSX\ParticleAndAnimation鑴氭湰\._Editor.me
文件 178 2013-06-05 02:20 ParticleAndAnimation鑴氭湰\ParticleAndAnimation.cs.me
文件 212 2013-06-05 02:20 __MACOSX\ParticleAndAnimation鑴氭湰\._ParticleAndAnimation.cs.me
目录 0 2019-11-22 05:17 ParticleAndAnimation鑴氭湰\Editor\
文件 212 2019-11-22 05:17 __MACOSX\ParticleAndAnimation鑴氭湰\._Editor
文件 860 2013-05-24 02:37 ParticleAndAnimation鑴氭湰\ParticleAndAnimation.cs
文件 212 2013-05-24 02:37 __MACOSX\ParticleAndAnimation鑴氭湰\._ParticleAndAnimation.cs
文件 178 2013-06-05 02:20 ParticleAndAnimation鑴氭湰\Editor\ParticleAndAnimationInspector.cs.me
文件 212 2013-06-05 02:20 __MACOSX\ParticleAndAnimation鑴氭湰\Editor\._ParticleAndAnimationInspector.cs.me
文件 445 2013-05-24 02:37 ParticleAndAnimation鑴氭湰\Editor\ParticleAndAnimationInspector.cs
文件 212 2013-05-24 02:37 __MACOSX\ParticleAndAnimation鑴氭湰\Editor\._ParticleAndAnimationInspector.cs
相关资源
-
imx6qSBP的jli
nk初始化脚本 - python实现的ftp自动上传、下载脚本
- “暴风一号”(“1KB文件夹快捷方式
- Linux系统命令及Shell脚本实践指南
- pppd2.4.7源代码以及拨号脚本
- 高级Shell脚本编程.chm
- 舒尔特方格excel自动生成.rar
- 局域网内批量扫描永恒之蓝勒索病毒
- 禁用系统服务reg脚本)
- 自动reload nginx解决nginx对动态域名不重
- 易语言闪电脚本引擎模块2.0版源码
- genesis10(含GFX稳定带脚本版
- 用delphi实现的类似于按键精灵的脚本
- arcpy语法教程入门以及ArcGIS的脚本构建
- ZProtect所有脱壳脚本
- Brainfuck / OoK 解码脚本
- 飞机大战_scratch2.0脚本_包含图片素材
- 游戏脚本制作教程
- 怀旧服钓鱼脚本dy.ahk
- 2014年最新最好的Unity3d圣典之中文脚本
- weblogic12c安装及WLST脚本创建域domain
- 快手极速版辅助脚本源代码
- Maya动画师MEL脚本编程全攻略 pdf 全书
- Unity3D 3D炸弹超人Demo
- 吃鸡鼠标宏完美适合罗技402和502
- 油猴或者暴力猴所有网页变灰黑白脚
- 教你如何自学AE脚本.doc
- Greenplum分布式一键安装及卸载脚本
- Linux云计算-Shell脚本100例
- Linux命令行与shell脚本编程大全.第3版
评论
共有 条评论