Hello there. Could you help me please? We are trying to use Needle engine to export VFX from Unity to three.js project (our project compiled through Webpack) and we canât seem to do anything that works. Do you have any ideas why that can be happening?
I created a particle system in Unity and exported it as a .gltf and .bin (with textures).
Our developer trying this process to insert it into the project with no avail:
Installed dependencies: npm i @needle-tools/engine
In main.ts:
import { NeedleEngine } from â@needle-tools/engineâ;
import * as THREE from âthreeâ;
function onStart() {
NeedleEngine.addContextCreatedCallback(args =>{
console.log(âNeedle createdâ);
});
}
However, the project doesnât build with webpack.
If you add the following to webpack.config:
How do you export your gltf file? By default we export to glb - this is not configureable. So I assume youâre going another route? Are you exporting via context menu and if so: why?
No I donât. I just place it there as a prefab.
As I remember this âGltfObjectâ is a component that I need to add in inspector right? It can be the reason why vfx doesnât export properly? This one is from âeportâ inspector