简体   繁体   English

Unity 2D粒子碰撞未发生事件

[英]Unity 2D particle collision not getting event

When I turn on particle system in my 2D game, and check the collision button in Inspector window, I expect to get an event On-Particle-Collision , but it never happens! 当我在2D游戏中打开粒子系统并检查“检查器”窗口中的“碰撞”按钮时,我希望得到一个事件On-Particle-Collision ,但它永远不会发生!

I even added an extra thing named WorldParticleCollider , but also, no collisions. 我什至还添加了一个名为WorldParticleCollider东西,而且没有碰撞。

I have tried even adding this WorldParticleCollider to the enemy(just for no reason), and sure it did not work. WorldParticleCollider至尝试将此WorldParticleCollider添加到敌人(无缘无故),并确保它没有用。

Screenshot: 截图:

截图:

Why is this ? 为什么是这样 ?

According to this question at the Unity forums OnParticleCollision may not support 2D games just now. 根据Unity论坛上的这个问题, OnParticleCollision可能暂时不支持2D游戏。

according to Unity Roadmap, this feature will be available with Unity 5.3 (Dec 8, 2015). 根据Unity路线图,此功能将在Unity 5.3(2015年12月8日)中提供。

Maybe you can use a 3D collider for your 2D game. 也许您可以在2D游戏中使用3D对撞机。

Remember the collider cannot be a trigger! 请记住,对撞机不能成为触发器!

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

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