How to access the "Third Person Adventure" variables?

Shazimus

New member
Wondering if anyone knows the syntax for how to access the variables in the CameraController that are listed under the Third Person Adventure View Type? For example, I'd like to change variables like Forward Axis and Look Smoothing Offset in a script at runtime. Not found anything in the documentation explaining how to do this.
 
You can access those variables through the ViewType:

 
Hi Justin,

I've added a script reference as described by the doc:

adventureCam = mainCam.GetComponent<CameraController>().GetViewType<Opsive.UltimateCharacterController.ThirdPersonController.Camera.ViewTypes.Adventure>();

I've also added the necessary namespaces:

using Opsive.UltimateCharacterController.Camera;
using Opsive.UltimateCharacterController.Utility;
and also the one below:
using Opsive.UltimateCharacterController.ThirdPersonController.Camera.ViewTypes;


However, ViewTypes doesn't seem to give me access to any more variables than CameraController does. My script editor (Rider) lists Pitch, Transform, Yaw etc as variables that can be accessed. Other variables such as Look Smoothing Offset and Forward Axis are not listed. Am I doing something wrong?

Thanks,
Shaz
 
Last edited:
Top