This is a paid asset, but now you can download Dynamic Crosshair Color Change for FREE, Please keep in mind this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.
For more detail this asset from the Unity Asset Store: Click Here
Dynamic Crosshair Color Change v1.2
“If possible, please buy the package to support the developer”
An easy system to help developers implement a colour changing crosshair, depending on the element they are looking at.
In this example, the crosshair can change to a different sprite and colour when they aim at an enemy, a friendly, or at an item they can interact with. Included is documentation on how the system works, with a step by step breakdown for you to follow and use to incorporate it in your game.