Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

How to access a texture2d from another scene

$
0
0
Hi, I have one scene where I have multiple 2d textures in an STATIC array called "applicationTexts". I am trying to check in another scene if a certain texture is contained at a certain index. For example : SquadSelect.applicationTexts [0] == Resources.Load("louis_f") This seems to work, but im afraid if I port to Android or iOS it will not recognize the directory. Ive tried making the textures Static by using : public static Texture2D ExampleImageIcon = null; but it wont show up when I am in the inspector to allow me to apply an image Doesn anyone know how to access a static texture from another class? Or if there is a safe way to house resources so that I can port to iOS or Android? Thanks,

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>