- Home /
Need Help making a game like 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;
publicclassMyColor : MonoBehaviour {
//Usethisforinitialization
voidStart () {
}
//Updateiscalledonceperframe
voidUpdate () {
}
voidOnMouseDrag()
{
renderer.material.color =Color.red;
}
}
Comment
Your answer
Follow this Question
Related Questions
2 unity web games on one page.. 0 Answers
facebook integration with unity iphone games 1 Answer
Would it be a bad idea to develop 2D games like 2048 or tetris in Unity? 1 Answer
Up to 10% off for runescape gold on Rs3gold from June 14 to June 23,Ready to Snap? 0 Answers
How to finish a Quaternion.Euler rotation when you let go of the input? 1 Answer