Search Unity

Question Custom Editor For Texture2D To Turn On/Off RGBA Channels

Discussion in 'General Graphics' started by venenomz97, Aug 12, 2022.

  1. venenomz97

    venenomz97

    Joined:
    May 14, 2021
    Posts:
    1
    Hey! I am in the process of developing a custom editor for turning off / on rgba channels of the selected texture.

    I was curious how to access these channels, similarly to how you do it in the texture preview (see below.)
    upload_2022-8-13_0-3-5.png upload_2022-8-13_0-3-27.png
    upload_2022-8-13_0-3-50.png

    I have the code for a dropdown menu ect already, just don't know how to access these channels in the same manner the previewer does.

    I've got it mocked up on the Texture Importer (I didn't know what the correct editor element was but it looks right.) Any Advice would be great! thanks.