Search Unity

Bug New "SceneView RT Texture" added every time I Pause And Play.

Discussion in 'Editor & General Support' started by koirat, Apr 6, 2022.

  1. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,073
    Unity3d 2021.2.13f1

    Since I have noticed one additional texture is created every time I Pause and Play in Play mode in Editor, I have created script that diffs textures before I pause the player and after I push play again.

    The result looks like this for example:
    And I grab textures like this:
    Code (csharp):
    1.  
    2. var textures = Resources.FindObjectsOfTypeAll<Texture>();
    3.        foreach (Texture t in textures) {
    4. //I do the stuff here
    5. }
    6.  
    What you can see there is a lot of SceneView RT textures.
    One is added every time I pause and play again.