Question by
BoyanaB · Jul 12, 2016 at 11:15 AM ·
javascriptnodejs
require(“”) from Node.js in UnityScript
Hi all,
I am an API noob trying to get a Node.js script to work for UnityScript. My code calls for 3 libraries from Node which are all loaded using require()
Unityscript (and as I understand orthodox Javascript) does not have the require() function built in. So my question is: how can I bring my libraries into the code without it?
(The libraries I need are: require("util") / require("request") / require("fs"))
Thank you!
Comment
Your answer

Follow this Question
Related Questions
My script does not work each time i enter Unity unless i add it to the object again. any solutions? 0 Answers
Android sadk path Error 0 Answers
Jump Issue :( 1 Answer
How to make text bigger in javascript code? 1 Answer
Standard Assets unusable - Trying to use the ThirdPersonController Prefab 1 Answer