I'm getting this error when trying to create a slider GUI to adjust mouse sensitivity while in game? I know the script is correct for accessing the MouseLook Script and variable, but I'm still getting the error:
'MouseLook.sensitivityX' is inaccessible due to its protection level.
asked May 03 '10 at 12:24 AM
If it is talking about protection level, then presumably the variable is not "public", e.g.
answered May 03 '10 at 02:06 AM
You can't just call the sensitivityX property of your script, that's not how the scripting works.
You need to get a reference to the MouseLook script before you can change it. Like this:
answered May 03 '10 at 12:45 AM