- Home /
2D Can we create a lighting effect to take on sprites rather than colouring the sprites .
I want to create a rings of different colours on a circle gameObject , I don't want to deal with shaders or Uv meshes , I don't now how to write shaders ,but I want to create this effect.
and i want to change the colours at runtime .
Can you post an example image of what the end result would look like?
Answer by DenisTribouillois · Jul 20, 2016 at 02:03 PM
You can make a texture with Photoshop or any other software or even find what you want on the internet and set the texture to you GameObject. It should be easier than doing it in unity.
I don't know if you have something like this in mind, but here it is.
Nopes , i want to change colours and i want it to happen the thing as kind of tunnelling effect circle inside circle with another color.
Ok, it is much clearer now. I guess that you could create multiples circle GameObject with different colors and order them with layer to achieve what you want. It's then very easy to change the color at runtime.
@DenisTribouillois , I understand that but with that the borders of different gameObjects are visible and that doesn't give a nice look .
I don't see why the borders have to be visible. Anyway it's just a solution to do the trick, you can probably do it other way.
@DenisTribouillois , you mean you think the borders won't be visible , the borders are visible and i don't want that.
@DenisTribouillois , I carried on by placing different gameObjects(circles ) at a position , But when a touch is made it is only detected by the top most , I want the touch to propagate through to all gameObjects.