- Home /
Question by
NatalieW15 · Aug 23, 2019 at 09:11 PM ·
animationvideocutscene
How do I insert my cutscene?
Here's my desired sequence: Player comes up, steps on a pressure plate using player's POV. The screen cuts to a door opening, then when the door is open, it cuts back to the player's POV.
What I've tried: Can't really use Cinemachine dolly track because the door isn't nearby. I've created an animation of the door opening using TimeLine, so in theory I should just be able to make the camera playing that animation - right? I know I just need to add to my script SendOnTriggerEnter, which is this:
using System.Collections; using System.Collections.Generic; using UnityEngine;
namespace Gamekit3D.GameCommands {
public class SendOnTriggerEnter : TriggerCommand
{
public LayerMask layers;
void OnTriggerEnter(Collider other)
{
if (0 != (layers.value & 1 << other.gameObject.layer))
{
Send();
//Play video called Recording.
}
}
}
}
Can anyone help me?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612211035im_/https://answers.unity.com/themes/thub/images/avi.jpg)