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();
    }
}
相关推荐
hhw19911244 分钟前
c#面试题整理6
java·开发语言·c#
HELLOMILI1 小时前
第四章:反射-Reflecting Your World《Unity Shaders and Effets Cookbook》
游戏·unity·游戏引擎·游戏程序·图形渲染·材质·着色器
程序视点1 小时前
SpringBoot配置入门
java·spring boot·spring
Benaso2 小时前
Java,Golang,Rust 泛型的大体对比小记
java·golang·rust
虾球xz2 小时前
游戏引擎学习第146天
学习·ffmpeg·游戏引擎
程序员清风2 小时前
什么时候会考虑用联合索引?如果只有一个条件查就没有建联合索引的必要了么?
java·后端·面试
Seven972 小时前
【设计模式】掌握建造者模式:如何优雅地解决复杂对象创建难题?
java·后端·设计模式
小沙盒2 小时前
godot在_process()函数实现非阻塞延时触发逻辑
javascript·游戏引擎·godot
自在如风。3 小时前
MyBatis-Plus 使用技巧
java·mybatis·mybatis-plus
XORE953 小时前
IDEA Generate POJOs.groovy 踩坑小计 | 生成实体 |groovy报错
java·spring·intellij-idea