6

We had to work in Unity once. Our goal was to create a tube, which is striped with two alternating colors and we should make it look like the colors are moving upwards to symbolise some flow inside the tube.
In Unity there is a way to do this with particle effects, sadly we weren‘t able to do this as it always looked 2D in the VR.
As the deadline rushed closer i had the most hacky idea i ever had.
I created a long one colored Cylinder and one very short and slightly bigger cylinder in the other color.
I then wrote a script, which spawns a big number of the little cylinders and slowly moved them towards the other end, where they get destroyed eventually.
It worked
It looked great
We never told anybody about this hack

Comments
  • 1
    So...you basically made your own particle effect?
    I'm sure there must be a way to do this with Unity's particle engine.
  • 2
    ... dude, how about just texturing the tube with 2-color texture and then animating uv coordinates of the model (or, uv offset of the material) via script?

    that's The Right Way™, if you're interested
  • 1
    Everyone involved wanted to get quickly done with it. Was a tech demo for some rich guy.
    It didn‘t have to fulfill any requirements besides working 😄
    Of course there are better ways to do it, but neither of us was hired to work with Unity
Add Comment