- Home /
Question by
Mark_Monster · Dec 25, 2014 at 10:58 PM ·
javascriptfunctionpublic
How can I make a JavaScript function public?
The question says it all. Thanks in advance.
Comment
Best Answer
Answer by jpthek9 · Dec 26, 2014 at 12:28 AM
Add 'public' before whatever you need public and you should be able to access it from another script.
Your answer
Follow this Question
Related Questions
Static and Coroutines help 2 Answers
how to make object stay destroyed after OnTriggerEnter? 1 Answer
OnCollisionEnter does not work. 1 Answer
Performance Optimization ~Function Update: Loop or Once ? 5 Answers
Restart this script 3 Answers