Firstborn/Library/PackageCache/com.unity.cinemachine@2.8.9/Samples~/Cinemachine Example Scenes/Shared/Scripts/ActivateCamOnPlay.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

21 lines
350 B
C#

using UnityEngine;
namespace Cinemachine.Examples
{
[AddComponentMenu("")] // Don't display in add component menu
public class ActivateCamOnPlay : MonoBehaviour
{
public CinemachineVirtualCameraBase vcam;
// Use this for initialization
void Start ()
{
if (vcam)
{
vcam.MoveToTopOfPrioritySubqueue();
}
}
}
}