Search Unity

API command missing to revert a Texture2D from AssetDatabase?

Discussion in 'Asset Database' started by Quatum1000, Apr 1, 2020.

  1. Quatum1000

    Quatum1000

    Joined:
    Oct 5, 2014
    Posts:
    889
    Hi everyone,

    it's possible to change any texture3D/2D by SetPixels, .Apply() But the original file is never touched and changes are temporarily stored to the GPU and anywhere else.

    I can't find any API command to revert from the asset database. The reason is to undo changes without wasting RAM and performance, eg. on lager textures 8192^2. Creating a copy required 1.2GB data on these large textures.

    Thank you..
     
    Last edited: Apr 1, 2020