Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8653651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:35:43+00:00 2026-06-12T14:35:43+00:00

i have a texture applied to a plane, and would like on screen touch

  • 0

i have a texture applied to a plane, and would like on screen touch to erase the selected location on that plane (like an eraser) so that in the location i have touched, the texture should be transparent. How can i do so?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:35:45+00:00Added an answer on June 12, 2026 at 2:35 pm

    Following your clarification in the comments above will this work:

    Texture2D texture = renderer.material.mainTexture;
    Color color = new Color(0.5F, 0.5f, 0.5F, 0.5F);  //example color, grey w/ half opacity
    
    texture.SetPixel(0,0,color); //set pixel (0,0) to the color specified
    texture.Apply();  //Must be called at least once after all changes to pixels made
    

    Hopefully that’s what you need. Obviously you’ll need to add the code to modify only pixels near to where your cursor hits.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is hopefully a simple question: I have an OpenGL texture and would like
I have a texture manager that I am running as singleton, and wish to
I have a 16*16 texture, and when i draw it to the screen, It
i have a GLSurfaceView, that has a texture that i need to change when
I have a texture loaded into memory that is of RGBA format with various
I have a texture that follows a user's finger in GLKit. I calculate the
I have one texture that has some portions which are transparent transparent I want
Suppose I have an application that will draw 20 little UIImageViews on the screen.
I have a texture with transparency (the white triangle with that lighting information), and
I have a 256x256 texture in my view frustum that I need to move

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.