Quantcast
Viewing all articles
Browse latest Browse all 110

JS Objects VS Class (are they the same?????)

first off, if you aren't familiar with JS (Not the Unity JS, traditional web JS) objects you probably won't be able to help me. In JS (non Unity) there things known as objects. in a [previous question][1] i asked about JS Objects and found that you cannot really create an object in Unity Script. The person who answered the question i asked told me something about classes, they made it seem as though i could use them in the same way (relatively). eager to continue working on my project, i assigned a variable to a class and treated it *exactly* like a JS Object. I am encountering some problems i cannot explain. My only conclusion to draw is that classes and JS Objects are not the same thing. **I need to know their differences, so i know where to use something else instead.** Been considering just switching over to multidimensional arrays for this project for a while now. but i would rather completely change my object oriented code if I don't have to. thanks for taking time to read this. Have a Quishtay™ day!! [1]: http://answers.unity3d.com/questions/587705/declaring-a-new-object-js.html

Viewing all articles
Browse latest Browse all 110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>