Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

A way to quickly clear a texture from a shader?

Discussion in 'Editor & General Support' started by EricColossal, Nov 6, 2015.

  1. EricColossal

    EricColossal

    Joined:
    Sep 7, 2013
    Posts:
    6
    Hello!

    I do a lot of shader and texture work and I'm always removing textures from materials for debug purposes. Whenever I click the little circle in a material to bring up the texture selection window I have to either type in None and then use the arrow keys to navigate to the "None" slot and then hit enter or scroll up using the mouse. Is there a faster way? A shortcut that clears a texture slot [something like, hold alt and right click to clear a texture slot would be amazing]? Or an editor extension that pins None to the top?

    Thank you!
    Eric
     
  2. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    8,986
    Just click on the texture slot (not the circle icon) so it is highlighted an press the delete key.
     
  3. EricColossal

    EricColossal

    Joined:
    Sep 7, 2013
    Posts:
    6
    Ah right, well, that's simple enough! Thank you!
     
  4. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,066
    ......didn't know that :)