Skip to content

Commit 56884cf

Browse files
author
Antoine Lelievre
authored
Fixed warnings when new input system is enabled (#2274)
1 parent 6dda2a7 commit 56884cf

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

com.unity.render-pipelines.core/Runtime/Camera/FreeCamera.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class FreeCamera : MonoBehaviour
3535
/// </summary>
3636
public float m_Turbo = 10.0f;
3737

38+
#if !USE_INPUT_SYSTEM
3839
private static string kMouseX = "Mouse X";
3940
private static string kMouseY = "Mouse Y";
4041
private static string kRightStickX = "Controller Right Stick X";
@@ -44,6 +45,7 @@ public class FreeCamera : MonoBehaviour
4445

4546
private static string kYAxis = "YAxis";
4647
private static string kSpeedAxis = "Speed Axis";
48+
#endif
4749

4850
#if USE_INPUT_SYSTEM
4951
InputAction lookAction;

com.unity.visualeffectgraph/Runtime/Utilities/PropertyBinding/Implementation/VFXInputButtonBinder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ class VFXInputButtonBinder : VFXBinderBase
2020
public float SmoothSpeed = 2.0f;
2121
public bool UseButtonSmooth = true;
2222

23+
#if ENABLE_LEGACY_INPUT_MANAGER
2324
float m_CachedSmoothValue = 0.0f;
25+
#endif
2426

2527
public override bool IsValid(VisualEffect component)
2628
{

com.unity.visualeffectgraph/Runtime/Utilities/PropertyBinding/Implementation/VFXInputKeyBinder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ class VFXInputKeyBinder : VFXBinderBase
2020
public float SmoothSpeed = 2.0f;
2121
public bool UseKeySmooth = true;
2222

23+
#if ENABLE_LEGACY_INPUT_MANAGER
2324
float m_CachedSmoothValue = 0.0f;
25+
#endif
2426

2527
public override bool IsValid(VisualEffect component)
2628
{

0 commit comments

Comments
 (0)