简体   繁体   English

Unity粒子系统无法出现在游戏场景中

[英]Unity Particle System cannot appear in game scene

I have problems with my unity particle system.我的统一粒子系统有问题。 It is appearing in the scene but it does not appear in the game scene after it is being played.它出现在场景中,但在播放后不出现在游戏场景中。 What do you think the problem lies in?你认为问题出在什么地方?

1.ParticleSystem is not loop, not enable or not play... 1.ParticleSystem 不循环,不启用或不播放...
2.Your particles are too small. 2.你的颗粒太小了。
3.Particles are not in the camera's view. 3.粒子不在相机的视野中。
4.If you are using Unity's 2D tool, maybe sprite's sorting order is above your particle. 4.如果您使用的是Unity的2D工具,可能精灵的排序顺序在您的粒子之上。 <- Change ParticleSystem's sortingLayerName and sortingOrder. <- 更改粒子系统的排序层名称和排序顺序。

There's also a bug where the particle's origin (usually the centre) is well outside the camera's frustum they can be incorrectly culled.还有一个错误,即粒子的原点(通常是中心)远在相机的平截头体之外,它们可能会被错误地剔除。 I found this with giant sunbeams.我用巨大的阳光发现了这个。

I had a similar issue.我有一个类似的问题。 The problem for me ended up being related to the Renderer Module's "Render Alignment" being set to "World".我的问题最终与渲染器模块的“渲染对齐”设置为“世界”有关。 Pair this with -90 rotation on X and it made my particles disappear (2D game with an orthographic camera probably didn't help).将此与 X 上的 -90 旋转配对,它使我的粒子消失(使用正交相机的 2D 游戏可能没有帮助)。 Switching Render Alignment to "Facing" fixed my issue.将渲染对齐切换为“面向”修复了我的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM