Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created April 3, 2018 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/4684c2fdf03c880e27b83c9bcb58812d to your computer and use it in GitHub Desktop.
Save tsubaki/4684c2fdf03c880e27b83c9bcb58812d to your computer and use it in GitHub Desktop.
using UnityEngine;
using Cinemachine;
public class ChangeCamera : MonoBehaviour {
public CinemachineVirtualCamera vcamera;
void Update ()
{
if( Input.GetKeyDown(KeyCode.Space))
{
vcamera.Priority = 100;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment