Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    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,609
    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