Forum rules - please read before posting.

Disabling Camera Transition Options

Good afternoon!

I've tried to implement a system that lets the player choose to disable smooth camera transitions (using a check box in the options menu combined with an Event OnSwitchCamera).

The event checks if a global variable "Setting_MotionSIckness" is enabled, and if so does a Camera Switch using the camera as a parameter, and transition time set to 0.

This works in engine, and in builds, but throws a StackOverflow everytime it happens and once the build is on Steam ... it crashes :)

I'm not sure if there is a more elegant way to override the camera transition to remove the transition time - I'd appreciate any help I can get here.

Cheers,

Andrew

Comments

  • edited July 29

    What is the error text, as it appears in the Console, and what are your AC/Unity versions?

    Interesting approach. Though, what I'd suggest instead is to create a Camera: Switch Action in an ActionList asset that takes parameters for both the Camera and the Transition time.

    Precede this with a Variable: Check for Setting_MotionSickness, and have this run a separate Camera: Switch Action that also uses the Camera parameter, but without a transition.

    Then, you can replace your current Camera: Switch Actions with ActionList: Run Actions to run this ActionList.

  • Hey Chris,

    Sorry for taking so long to reply!

    I'll give your idea a shot, and let you know if I run into further issues :)

    The exact error that gets put into the console is a massive stack trace. If I can't get it running the way you've suggested I'll find a place to securely upload it and send it to you.

    Thanks!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.