- Home /
Change a paramater in a script AFTER EXPORT
Hello eveybody,
I'm working on a dynamic load video texture and i would to know if it's possible to change a paramater of a script (an URL in exemple) after i have exported the projet ...
I would like to give to users the possibility to load their own videos and use this videos as texture in my game.
Answer by gjf · Jul 03, 2014 at 09:28 AM
yes - just create a dialog to allow the user to input the url...make sure you check that it exists, etc. and handle errors properly.
I don't know if it's possible or not. That is why i ask the question. When i export my project (Web Player), unity gives me a folder with 4 files in it and i don't know where are my scripts. There are probably in the js files but i'm not sure.
I will try to make it (allow the user to input the url) with a dialog box
The Unity Web player exporter compiles your scripts to binaries which then get run by the Web Player Plugin. The JavaScript (Actual javascript, not UnityScript) files that the exporter creates are part of the webpage that is created and have nothing to do with your game.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
How to import the object from server to unity 2 Answers
Material doesn't have a color property '_Color' 4 Answers
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Attaching default script to prefab 1 Answer