- Home /
Question by
ProTheJoker · Oct 20, 2013 at 09:08 PM ·
variableaccessanotherfrom
Can't access variable from another script.
Hi all,
First of I'm working with JavaScript. I'm trying to access the variable "walkspeed" in a script called "movement", so in the script that I'd like to modify the variable in I put this: movement.walkspeed = 15.0;
but Unity prompts this error: An instance of type 'movement' is required to access non static member 'walkspeed'.
Any help will be relished.
Comment