Hi,
I am trying to change the effectscaler of the Camera Joystick through script but I cannot get it to work and I am not sure about the Joystick/JoystickUI/Download/Template. Is there an easy way to do this? I only need a simple method that sets the effectscaler to a new float.
// Magnus
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
The Joystick and EffectScaler properties are currently read-only, but I can look into making them publicly accessible.
What's the scenario, and are you referring to the legacy one available on the Downloads page, or the built-in one available within the New Game Wizard?
I'm still using the download-one. The scenario is that I use close-ups of Inventory items with a similar approach as that of the First person demo (a 3rd person camera attached to each item-examine-prefab). The Camera joystick is used to spin the object (spin the camera) and I'd like to make the spin slower when examining the objects and the set the effectscaler back to a higher value when in normal play mode.
If you're using the Download one, you can affect it with:
Thanks. I could be wrong in that I'm using the one with the New Game Wizard, but I don't remember changing it.
Visual studio gives me the following error:
How can I check which Joystick I am using?
Open up the script associated with the component on your JoystickUI prefab.
If you are using the Download one, you may need to re-grab it as the necessary changes made to it may have been made after you last did so.
The other way to go about this, though, is to have a second JoystickUI, disabled, which then gets enabled (and the original one disabled) so that you switch to an entirely different Joystick setup during this time.
Yes, updated the Joystick and all works perfect! Thanks a lot!