I made some tutorials for unity 5.5. I hope they help.
also if anyone have a question feel free to ask
I made some tutorials for unity 5.5. I hope they help.
also if anyone have a question feel free to ask
great
Awesome, thanks for sharing!
Good demonstrations…
These are awesome. Thanks for sharing.
Does anyone know how to use GetCustomParticleData, ParticleSystemVertexStreams, etc?
I was struggling with a way to “assign” an id/index to each particle. I’ve been using a paramater(say, size) to represent the id of each particle, and I’m trying to do that with custom per particle data in 5.5.
I’m wondering if there’s a way to pass custom data somewhere in EmitParam instead of getting all list and not knowing which particle’s which.
I think this question is worthy of its own thread, but I’ll answer here.
The custom data is 0 by default. So if you want a unique ID per particle, each frame in update, call GetCustomParticleData, and, for any element that is 0, assign ++MyUniqueID. Finally, set the array back using SetCustomParticleData.
On the next frame, the custom data will have been remembered, but the particle order may have changed, so don’t rely on it
Oh and if you want that data in a shader, open the Renderer module and add the Custom stream. Or call EnableVertexStrram from script.
In the renderer module ui, it will tell you which TEXCOORD that maps to. Just add it to your shader input structure.
Start a new thread if you have any problems and we can figure it out in there. We also need to add docs examples for all this
YES
Thank you so much SunriseKingdom