- Home /
Question by
unity_RMiJ7SENDRQxhQ · Feb 17, 2019 at 05:31 AM ·
shaderui image
how can i find the border of image object?
I want to change the colors of borders of UI image object in shader.How can i do that using shaders?(i know there are alternate methods for doing that but i want to do this way just for my understanding how Ui objects border pixels are accessed and their color is changed).
Comment
I dont think you can directly access the UI image inside your shader. But you can pass along Vector3 and similar "basic" variables. You can use this to calculate the bounds in a standard gameobject and pass the positions along with SetVector()
Your answer
