Search Results
| Search type | Search syntax |
|---|---|
| Tags | [tag] |
| Exact | "words here" |
| Author | user:1234 user:me (yours) |
| Score | score:3 (3+) score:0 (none) |
| Answers | answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
| Views | views:250 |
| Code | code:"if (foo != bar)" |
| Sections | title:apples body:"apples oranges" |
| URL | url:"*.example.com" |
| Saves | in:saves |
| Status | closed:yes duplicate:no migrated:no wiki:no |
| Types | is:question is:answer |
| Exclude | -[tag] -apples |
| For more details on advanced search visit our help page | |
Results tagged with javascript
Search options not deleted user 39110
"JavaScript (sometimes abbreviated JS) is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. It is a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles." From Wikipedia. http://en.wikipedia.org/wiki/JavaScript
0 votes
1 answer
102 views
GameObject remains null for some reason
The idea is to access the function BlockWasDestroyed(); from Combo class. Instead of var combo = gameObject.GetComponent(Combo); I've also tried with var combo = GetComponent(Combo); var combo:Combo …
2 votes
0 answers
135 views
Certain sound is played after last if within script [closed]
The idea is to make the sound work when comboTime is false. However, it works in an unexpected way: the sound works after the last if statement within ComboHud.js, which is: if (Time.time > Combo.time …
2 votes
1 answer
4k views
Can't edit specific variables from the inspector panel, while variable is static
In order to make the variable accessible from other classes, I have to make it static. When I make it static, I can't edit it from the Unity's Inspector panel. No way to be able to do both: accessib …
2 votes
1 answer
62 views
Wrapping each script with classes causes errors
The goal here is to change variables from another script. Thing is that they must be in classes, so for example I wrapped this code (which is from PadControl.js): #pragma strict public var ball : Ga …
0 votes
1 answer
4k views
Error when using GetComponent (Object reference not set to an instance of an object)
I'm using a textmesh to check variables in real time. Thing is if I use AddComponent within Update(), it obviously starts spamming and slows the game. If I try with GetComponent the error is the follo …