This commit is contained in:
2025-11-20 12:06:42 +08:00
parent 388fbe743e
commit 7936419eec
566 changed files with 130934 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
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;
}
}
}
}