TurnBasedStrategyCourse/Library/PackageCache/com.unity.cinemachine@2.9.7/Samples~/Cinemachine Example Scenes/Shared/Scripts/InputSystemHelper.cs

24 lines
968 B
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using UnityEngine;
namespace Cinemachine.Examples
{
public static class InputSystemHelper
{
static float s_LastMessageTime = -10;
// Logs warning every 5 seconds
public static void EnableBackendsWarningMessage()
{
if (Time.realtimeSinceStartup - s_LastMessageTime > 5)
{
Debug.Log(
"Old input backends are disabled. Cinemachine examples use Unitys classic input system. " +
"To enable classic input: Edit > Project Settings > Player, " +
"set Active Input Handling to Both!\n" +
"Note: This is probably because the Input System Package has been added to the project. To use " +
"Cinemachine Virtual Cameras with the Input System Package, add CinemachineInputProvider component to them.");
s_LastMessageTime = Time.realtimeSinceStartup;
}
}
}
}