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. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

Texture2DArray feedback/question

Discussion in '5.4 Beta' started by Peter77, Jul 27, 2016.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,324
    I started to write an editor for Texture2DArray assets, but I couldn't find a way to manipulate existing Texture2DArray's.

    While copying texture data into existing Texture2DArray's works, I wasn't able to find a way to change the number of elements, which would be important functionality for me. I'd also need to change to change format, mipmap and linear.

    The need for being able to modify existing Texture2DArray's is to avoid breaking asset references. Materials that already reference a Texture2DArray must not lose their reference to that Texture2DArray.

    I'm looking for functionality to modify/replace an existing Texture2DArray asset, which is sub-asset (AssetDatabase.AddObjectToAsset) of a container object, where the container holds information about the Texture2DArray construction (such as which textures should go into the array).

    Thanks,
    Peter