Unity烟花demo

示例:

Unity烟花demo

按钮控制脚本

cpp 复制代码
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FireworksController : MonoBehaviour
{
    public ParticleSystem fireworksParticle;
    // Start is called before the first frame update
    void Start()
    {
        fireworksParticle.Stop();
    }

  public void TriggerFireworks()
    {
        fireworksParticle.Play();
    }
}
相关推荐
Java开发追求者17 小时前
vscode导入springboot项目
java·ide·spring boot·vscode
麦烤楽鸡翅17 小时前
坚持60s (攻防世界)
java·网络安全·jar·ctf·misc·反编译·攻防世界
少废话h17 小时前
Flume Kafka源与汇的topic覆盖问题解决
java·linux·kafka·flume
激动的兔子18 小时前
Geoserver修行记-连接瀚高数据库显示java.sql.SQLException: org.postgresql.util.PSQLException
java·geoserver·瀚高数据库
一 乐18 小时前
健康打卡|健康管理|基于java+vue+的学生健康打卡系统设计与实现(源码+数据库+文档)
android·java·数据库·vue.js·spring boot·微信小程序
ghie909018 小时前
使用Java实现用户的注册和登录流程
java·数据库·oracle
颜如玉18 小时前
动态拼接SQL实践备忘📝
java·sql·mybatis
9523618 小时前
数据结构-堆
java·数据结构·学习·算法
by__csdn18 小时前
Spring Boot 全面解析
java·数据库·spring boot·后端·spring
她说..18 小时前
基于Redis实现的分布式唯一编号生成工具类
java·数据库·redis·分布式·springboot