Need Help making a game lik Nail Art

Hello Guys,
i want to paint the nail with nail polish.I am working on a small Nail Art game.I am using the following code.But it cahnge the color of nail on one click.Actually i want where i drag my bursh the paint should be draw there.
Please guide me
Code (csharp):

    • usingUnityEngine;
  • usingSystem.Collections;
    • //Usethisforinitialization
  • voidStart () {
    • }
    • //Updateiscalledonceperframe
  • voidUpdate () {
        • }
  • voidOnMouseDrag()
  • {
      • }
    • }

You’ll want to paint directly on the texture. Check out a project like Unity Paint (UnityPaint – Arongranberg.com).

no i dont really want to paint directly.i want to nail polish effects to nails in gameplay.just need code how cani do that.it is just like rendering an object with specific color at runtime but render only that part of object at which i drag my nail polish’s brush.its just like real world scenario somebody polish nail.

Right, so you’d paint directly on the nail’s texture. Check out the link I gave above – just apply the drawn texture to the nail and you’re golden.

Thanks :slight_smile:

Got it! Just apply the drawn texture to the nail for the desired effect.