- Home /
How to use texture2d arrays?
Hi, following the unity docs, I've created a script and a shader in order to handle multiple textures on the same material.
But I don't know how to properly apply it to the material with the shader.
It gives me an Input "Texture 2d Array" which I don't know how to set.
In the script for creating the textures, I've this line:
objectToAddTextureTo.GetComponent<Renderer>().sharedMaterial.SetTexture("_MainTex", texture2DArray);
Comment
Your answer
Follow this Question
Related Questions
Casting Error C# between Object[] and Texture2D[] 2 Answers
Pushing textures in an Array 2 Answers
Loading Textures from AssetBundle 0 Answers
Texture2D Array Appears Grainy 0 Answers
Retrieve Array of Texture2Ds dropped in EditorWindow ObjectField 0 Answers