how to draw a texture on the terrace with the help of a script!

I need that when an object touched a tyrein he began to draw a texture, in the same dimensions as the object!

What have you tried so far? This forum is not so much about “we write code for you” as it is “you bring your code and post it and ask what might be wrong about it.”

Thanks for the answer ! I don’t need a code! I need information on how to implement this! What to search, HOW to search, where to go,

This is an excellent start: Learn

it looks like you misunderstood me, =), I asked you to throw in an idea to me, or you might have met someone like to implement and not a ready-made solution, in your case you also threw me a heading, it’s sad to see that ! Well I will continue to punch to look for my answer!

Okay, I’ll bit:

  • make a texture, mark it read/write in the inspector
  • put it on a material, apply it to your model
  • when you want to draw on it, Raycast at the model and get the barycentric texture coordinates out of the RaycastHit object that the Physics.Raycast system fills out for you.
  • use those coordinates to modify the underlying texture to achieve in-world 3D painting, probably modifying it with .SetPixel() and .Apply() on the Texture2D object

Everything else is an Implementation Detail™.

Thank! Thank you very much for the answer, I will punch!