- Home /
Extra semicolon???
This is my code in Js
var spectrum = float[];
function Update () {
spectrum = AudioSource.GetOutputData(1024, 0);
}
Somehow (sorry if I am wrong), unity says to me that in the line of "var spectrum = float[];" there is missing a semicolon. Do someone know how to fix this?
Comment
Best Answer
Answer by SeasiaInfotechind · Oct 29, 2015 at 04:55 AM
HI, In Javascript array is declared this way:
var values : float[];
Please check the link shared below: http://docs.unity3d.com/ScriptReference/Array.html
GoodLuck!!
Your answer
Follow this Question
Related Questions
Assign rotation of GameObject by using a Vector3 as variable 1 Answer
Point Counter Works Only Once! 1 Answer
Use Mathjax to display mathml in unity? 0 Answers
Ads shows in the editor but not in the Game? please help. 0 Answers
Has my project's data corrupted? Script keeps returning null but 20 minutes ago it wasn't? 1 Answer