- Home /
Liquid stains on objects
I've got a goo bomb in a 3D game in Unity. When it goes off, I'd like to have goo stains on nearby surfaces including any enemies or players in the vicinity.
I thought about using projectors, but I was quickly brick-walled by the fact that they only project in one direction. It would look weird on non-flat surfaces.
I considered using flat plane prefabs for the floors and walls, but like projectors they cannot work on non-flat surfaces or on moving characters.
Decals seem like a reasonable way to go, but i can't figure out how to use them in unity. I saw some decal systems in the asset store, but the descriptions are pretty poor. Will they work on moving skinned characters? Will they work on non-flat surfaces in the environment?
I realize that I might have to scale down my expectations depending on Unity's limitations, but at the very least, I'd like to be able to stain the terrain convincingly.
Did you ask the developers of the decal assets directly if their asset does what you need? At the very least, you could post in the relevant thread.
$$anonymous$$y first thought would be a particle system (always fun!), but I am not sure how they would interact with other objects, if at all...
Other than that, +1 for Cherno; it is what I would expect a decal to do, so worth asking the decal devs for details.
For decals, check Edelweiss's decal system. I think it one of it's demos from earlier was a scene that would put bullet holes on moving objects as decals.
I didn't realize some of the products on the asset store had a dedicated thread. All I did was read the descriptions on the product pages. Thanks, I'll do some more digging.
Your answer
![](https://koobas.hobune.stream/wayback/20220613193228im_/https://answers.unity.com/themes/thub/images/avi.jpg)