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.
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).
To help users post good questions and use the site effectively we have posted a user guide. Please check it out.
Answers and Comments
13 People are following this question.
Setting Scroll View Width GUILayout
touch input certain screen part
Respawning at a position when the object is destroyed.
AddForce is not working