Topic: Camera Rotation

i am making a special move and want to move and rotate camera. in cinematic option i provide every value regarding movement and rotation but it is moving but not rotating. is there any other option or solution to rotate main camera?

Share

Thumbs up Thumbs down

2 (edited by SuperChoudhary 2021-06-08 01:52:06)

Re: Camera Rotation

You can try using one of the following:

UFE.freeCamera = true;
UFE.cameraScript.enabled = false;

and then move the camera around like

Camera.main.transform.localEulerAngles = newRotation;

There's also bunch of other options you can explore under 'UFE.config.cameraOptions.'

What I did was I created another bool and placed it inside the 'DoFixedUpdate()' function of the CameraScript.cs like this:

public void DoFixedUpdate()
{
            if (killCamMove) return;
            if (player1 == null || player2 == null) return;
            if (YourReferenceScriptHere.manualCam) return; // Replace with your boolean reference here

            if (UFE.freeCamera)
            {
                if (UFE.config.gameplayType != GameplayType._2DFighter)
                {
                    Update3DPosition();
                }
...

Share

Thumbs up +2 Thumbs down