Search Unity

  1. Unity 2019.4 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  3. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Change sprite color in the intersection of the collision

Discussion in '2D' started by andrellsilveira, Sep 9, 2019.

  1. andrellsilveira


    Sep 9, 2019
    Hello everyone

    I would like know how I could change the sprite color only in the area where is occur a collision between two objects, in the intersection of the colliders, per pixel, for exemple: I have two blue 2D objects with circle colliders, when they colide, I want change color to red in the intersection of the collision, where the restant part of the images continue blue.
    Could somebody help me in this question?
    I apologize for my english.

    Thanks! :)
    Last edited: Sep 9, 2019