playMaker

Author Topic: Accessing serialized fields??  (Read 1131 times)

McForbes

  • Playmaker Newbie
  • *
  • Posts: 2
Accessing serialized fields??
« on: April 08, 2016, 06:58:07 AM »
Hello,

I'm having difficulty with the first person prefab and mouse look in Unity. I need to have it so that the mouse look only activates when the mouse button is pressed so that at other times the user is free to press buttons on screen without looking away from the centre of the screen unnecessarily.

I've tried a simple button up and button down to activate the Playmaker version of mouselook but this causes the camera to intermittently suddenly look down when the mouse button is pressed rather than just move from where the camera is currently looking.

Another approach would be to access the MouseLook on the FirstPersonController on the FPS prefab in unity. I can't for the life of me work out how to do this. When I drag the script into the Playmaker state area I get very few options and when I open up the script it shows as [serialized field] and I can't access them.

It seems like such a simple task but I'm pulling my hair out trying to find a solution.

Does anyone have any suggestions?

Thanks