- Home /
Scripts in StreamingAssets folder not opening with MonoDevelop?!
Hi everyone.
This problem is starting to make me crazy! I can't open any of the scripts I put in the StreamingAssets folder in MonoDevelop. It opens in my default editor outside Unity. I have made sure MonoDevelop is set as my default editor in the preferences. I even reinstalled Unity. My biggest problem is that when I open the script in monoDevelop, it does not find the Unity libraries. So I cant use the auto-complete functions.
If anyone has any ideas on how to fix this, please let me know!
Edit: This only happens in the StreamingAssets folder. If I create a script and put it anywhere else, it works as expected.
Answer by Bunny83 · Jan 08, 2017 at 01:13 PM
The StreamingAssets folder is for things that should not be included in your project but simply shipped with the final build as it is. So scripts inside that folder are not compiled and can not be used in the project at all. All you could do with them is loading the text of the script at runtime, but you can not compile or use the script at runtime as this requires the compiler which is part of the editor.
But don't I need to use the Strea$$anonymous$$gAssets folder in order to use JSON?
I'm not sure what you mean. JSON (JavaScript Object Notation) is just a text based data format and not executable code. Also you don't need to use Strea$$anonymous$$gAssets for anything. It's a handy folder which you can use when you want to load custom data at runtime. However there are other ways as well. Also keep in $$anonymous$$d that for example on Android the Strea$$anonymous$$gAssets folder is read-only as it's inside the AP$$anonymous$$ file and you have to use the WWW class to read any file in there.
Note that JSON has nothing to do with actual JavaScript code.
Answer by ERSTELLER · Jan 08, 2017 at 03:31 PM
you can copy the script with strg/ctr + c you open MonoDevelop and strg/ctr + v
Your answer
![](https://koobas.hobune.stream/wayback/20220612104346im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to use a boolean to control another object boolean using C# script 4 Answers
How to fix TypeLoadException (EmguCV + Unity3d) 0 Answers
"Classic" namespace "UnityEditor" error 4 Answers
can't see monodevelop in External script editor 0 Answers
Why I am not able to see monodevelope.app in macOS 0 Answers