I have game object which loads textures from external directory. Code part looks like this:
private var stillsPathsLeft : String = Directory.GetFiles("C:/MyApp/stills/Left/","*.jpg"); private var urlLeft = "file://"+stillsPathsLeft[initImage]; private var stillsPathsReset = stillsPathsLeft.Length-1; private var initImage: int = 0; var leftGo: GameObject;
Learn to format your code properly. See the tutorial video.
Answer by Graham Dunnett
Apr 29, 2013 at 11:44 AM
The webplayer has zero (none, nada) access to the file system of the PC where it is running.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
13 People are following this question.
Setting Scroll View Width GUILayout
How do I add ammo and reloads?
Make object semi visible or invisible?
Displaying PDF in unity 5.1.2f1