Delay CameraEvent

audun
audun Posts: 302 🔥🔥🔥
edited April 2023 in Programming #1

Hi,
Is it possible to delay an event?
Eg. delay switching between front and back camera with x seconds.

My goal is to create a transition effect between each camera switch.

function onBackCamEvent(eventData) {
     // delay 2 seconds
        print('switched camera');
}

var cameraBackEvent = script.createEvent('CameraBackEvent');
cameraBackEvent.bind(onBackCamEvent);
Tagged:

Answers