- Home /
Accessing a script in Assets folder from Standard Assets Folder
I am trying to access functions from an asset store product I purchased through the standard assets scripting folder. The asset store item is dialoguer, it needs to stay in the asset folder because of how it's written (I tried putting in inside the plugins folder and I got alot of errors, all of the editor UI stuff stopped working too). Is there anyway I can access the script functions from dialoguer from a script like SmoothFollow.cs?
Also - Namespace wasn't helping either it wouldn't recognize it :(
Answer by ForgeStudios · Jan 07, 2015 at 12:51 PM
Got it! This can be solved by making a script in the base Assets folder to "link" these scripts, or in fact, and scripts. Items in the /Assets folder are checked first, if you put them in your scene they can: 1) Access any variables from any script in any folder 2) Run functions in any of the scripts from 1 3) Are compiled first
Can you expand on this a bit? I'm trying to move as much as I can into the Standard Assets folder but getting the usual errors that always stop me from trying. What kind of script did you make to link scripts? $$anonymous$$ore info would be great.
@Ony - see this http://answers.unity3d.com/questions/613747/how-to-modify-variables-from-scripts-in-standard-p.html
for some tips. If that doesn't put you on the path, please open a new Question with some more details.
Thanks for the heads-up. Right after I wrote that comment I decided to dive in and try one more time to move as much as I could to the Standard Assets folder. Assets from the store that I rarely update, etc. It took some time to do and some rearranging of the files but finally, finally after many times trying, I did it. Still going to go read the thread you linked to, so thanks for that, but yay! I finally worked it all out.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Multiple Cars not working 1 Answer
“via app name” link not working from Facebook Android app 0 Answers
Particle System On Key Press 2 Answers