# Unity Exporter-BabylonParticleSystem

**URL:** <https://forum.babylonjs.com/t/unity-exporter-babylonparticlesystem/10798>\
**Category:** Questions\
**Tags:** particles, unity-exporter\
**Created:** [May 13, 2020, 9:54am UTC](https://forum.babylonjs.com/t/unity-exporter-babylonparticlesystem/10798 "2020-05-13T09:54:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![senray0](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/senray0/32/5390_2.png) [@senray0](https://forum.babylonjs.com/u/senray0)\
**Post date:** [May 13, 2020, 9:54am UTC](https://forum.babylonjs.com/t/unity-exporter-babylonparticlesystem/10798/1 "2020-05-13T09:54:35Z")

</div>

Hello, I have a problem now.

Added the script BabylonParticleSystem to particles in Unity to debug related animations, and the Build And Preview scene can display particles normally. I got a scene in (.babylon) format. How can I use it to show this particle?

Thanks!

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [May 13, 2020, 12:53pm UTC](https://forum.babylonjs.com/t/unity-exporter-babylonparticlesystem/10798/2 "2020-05-13T12:53:59Z")

</div>

Adding the amzing @MackeyK24 our own Unity Exporter Guru 🙂

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [May 13, 2020, 2:17pm UTC](https://forum.babylonjs.com/t/unity-exporter-babylonparticlesystem/10798/3 "2020-05-13T14:17:41Z")

</div>

I’m sorry, I don’t understand what the problem is.

Using the Toolkit particle system component in your Babylon toolkit project ?

---

<div class="post-metadata">

**Author:** ![senray0](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/senray0/32/5390_2.png) [@senray0](https://forum.babylonjs.com/u/senray0)\
**Post date:** [May 14, 2020, 1:42am UTC](https://forum.babylonjs.com/t/unity-exporter-babylonparticlesystem/10798/4 "2020-05-14T01:42:25Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/1/16210783e77f29deddcab1e2c727298065dc505e.png)  
This is like this.  
I use Unity 2019.3.13f1 (64-bit) and babylonjs@4.2.0-alpha.15.  
Are there any related documents about unity exporting babylon particles recommended to me? I did not find it

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [May 14, 2020, 2:19am UTC](https://forum.babylonjs.com/t/unity-exporter-babylonparticlesystem/10798/5 "2020-05-14T02:19:04Z")

</div>

OK… I see… First off… This was **experimental**. It was my attempt at creating a **Shuriken Time Based** particle system (Like the Unity Particle System).

It may just have stop working because of API changes from when i first wrote it.

Again… What is the problem… It is just not working and not showing any particles… Are you getting some kind of error or what ???

---

<div class="post-metadata">

**Author:** ![senray0](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/senray0/32/5390_2.png) [@senray0](https://forum.babylonjs.com/u/senray0)\
**Post date:** [May 14, 2020, 3:10am UTC](https://forum.babylonjs.com/t/unity-exporter-babylonparticlesystem/10798/6 "2020-05-14T03:10:29Z")

</div>

BABYLON.SceneLoader.ImportMesh("", “resource/assets/particles\_04/”, “Test\_04.babylon”, this.\_scene, function (meshes, particleSystems, skeletons, anis) {  
});  
The above is the code I created, and it does not display properly in the scene. Is it because of missing main code?  
I tried to introduce two scripts in the same way as the exported scene.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/6/646e3e2bc93e456b06b7d318964ec0af04724701.png)

But it will give an error"Uncaught TypeError: Cannot read property ‘Zero’ of undefined at babylon.manager.js:5"

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [May 14, 2020, 3:31am UTC](https://forum.babylonjs.com/t/unity-exporter-babylonparticlesystem/10798/7 "2020-05-14T03:31:19Z")

</div>

Well… That is the old native .babylon file version. I have been trying to get out the newer toolkit. which is GLTF based… So basically EVERYTHING to do with the render of a scene has changed… its gltf based (beautifully PBR Rendered)

I cant tell what wrong with your project (It may be the importMesh call vs a scene load).

FYI… I dont have the Particle System class anymore in the new version… You would need to create a script component and create your particle system using code in your script component. (I may look at making another attempt at creating a Unity Style Shuriken particle System again for the new babylon toolkit)

Can you package up the old project and send to me and i will take a look at it so see if i can tell what is going on 🙂

But for now… I would recommend starting to use script components and create your particle system that way… When the new toolkit comes out… it will much easier to port your existing project content

---

<div class="post-metadata">

**Author:** ![senray0](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/senray0/32/5390_2.png) [@senray0](https://forum.babylonjs.com/u/senray0)\
**Post date:** [May 14, 2020, 6:57am UTC](https://forum.babylonjs.com/t/unity-exporter-babylonparticlesystem/10798/9 "2020-05-14T06:57:05Z")

</div>

[resources.zip](https://forum.babylonjs.com/uploads/short-url/r7EUBoc5OlerFTRfoyuR6INfu2r.zip) (16.0 KB)  
This is the exported particle resource, the project upload is very slow.

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [May 14, 2020, 9:15am UTC](https://forum.babylonjs.com/t/unity-exporter-babylonparticlesystem/10798/10 "2020-05-14T09:15:38Z")

</div>

I need the unity project… you could make a .unitypackage and include your project files… No need for babylon folder

---

<div class="post-metadata">

**Author:** ![senray0](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/senray0/32/5390_2.png) [@senray0](https://forum.babylonjs.com/u/senray0)\
**Post date:** [May 14, 2020, 9:36am UTC](https://forum.babylonjs.com/t/unity-exporter-babylonparticlesystem/10798/11 "2020-05-14T09:36:37Z")

</div>

[Particle\_UnityScene.zip](https://forum.babylonjs.com/uploads/short-url/naZvU89gINx0aTwiaKJXmIe8VCl.zip) (887.1 KB)
