gpt4 book ai didi

c# - 如何更改 Unity 3D 中的默认粒子?

转载 作者:行者123 更新时间:2023-11-30 13:21:50 25 4
gpt4 key购买 nike

假设我想使用 Unity 的粒子系统创建一个对象场,但我想使用我自己的粒子而不是 Unity 的默认粒子。如何创建这样一个自定义粒子系统?

有没有办法不使用粒子系统来做到这一点?我希望对象以类似的方式(即随机)移动。

最佳答案

您可以更改粒子系统发射的 Material ,这应该允许您让粒子系统发射具有自定义纹理的 Material 。

您首先需要通过转到assets > create > material 来创建新 Material 。

Create a new material in Unity3D

在你的新 Material 上,转到检查器窗口并单击下拉着色器菜单并选择粒子。我选择了添加剂来测试它,但只要 Material 允许您添加应该没问题的纹理。

Change the material shader type Add your texture to the material

当您拥有新 Material 后,您可以将粒子系统发射的内容更改为您的新 Material 。在层级查看器中选择您的粒子系统并转到检查器 View 。

粒子系统下,您应该滚动到名为渲染器的底部部分,打开该部分并单击default-particle 右侧的小圆圈material 属性中。

Change the material being emitted

只需从弹出菜单中选择您的新 Material ,您就可以开始了。

以下是一些可能有用的有用屏幕截图的链接:https://imgur.com/a/venMr

希望对您有所帮助!

Smiley face particle system

[编辑] -如果您想在粒子系统中使用 3D 对象,那么您也可以这样做。

进入检查器 View 并返回渲染器,从那里将渲染模式广告牌更改为网格然后,您可以从 mesh 属性中选择不同的 3D 网格。

Change the render mode of the particle system

就 3D 对象而言,粒子系统通常设计为仅发射网格,但如果您想发射自己的对象,可以在 Unity 商店购买插件。

Using 3D objects as particles

关于c# - 如何更改 Unity 3D 中的默认粒子?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37738346/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com