Files
webRtc/Packages/com.unity.renderstreaming@3.1.0-exp.9/Tests/Runtime/InputSystem/InputEditorUserSettingsTest.cs

28 lines
677 B
C#
Raw Normal View History

2026-04-28 16:48:04 +08:00
namespace Unity.RenderStreaming.RuntimeTest
{
#if UNITY_EDITOR && !INPUTSYSTEM_1_1_OR_NEWER
class InputEditorUserSettingsTest
{
[SetUp]
public void SetUp()
{
InputEditorUserSettings.Load();
}
[TearDown]
public void TearDown()
{
InputEditorUserSettings.Delete();
}
[Test]
public void LockInputToGameView()
{
Assert.That(InputEditorUserSettings.lockInputToGameView, Is.False);
InputEditorUserSettings.lockInputToGameView = true;
Assert.That(InputEditorUserSettings.lockInputToGameView, Is.True);
}
}
#endif
}