I had tried to look into the refection of the function node of CinemachineFreeLook, but I don't find any XAxis or MaxSpeed float.

I have looked into the manual.
https://docs.unity3d.com/Packages/com.unity.cinemachine@2.3/manual/CinemachineFreeLook.html

And the API
https://docs.unity3d.com/Packages/com.unity.cinemachine@2.1/api/Cinemachine.CinemachineFreeLook.html#Cinemachine_CinemachineFreeLook_m_XAxis

On the API there is only the m_XAxis for changing the Camera XAxis but not the MaxSpeed.
So how do I get the MaxSpeed float from Cinemachine so I can change it?
  • Hm, I don't think this is currently possible in ORK, as the max speed is a field of a field - you'd need to use m_XAxis.m_MaxSpeed to access it and that's not supported.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • So... Can I somehow use a script to change it MaxSpeed base on the script Variable and then use Function node to change Scripts Variable? Will that possible?
  • Yes, you can write a function and use it to set the max speed - using a Call Function node also allows you to pass e.g. a float value to the function as a parameter.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Great! I just learned about function on Unity learn. Will try to make it. Thank :)
Sign In or Register to comment.