Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/SRDebugger/UI/Other/ScrollSettingsBehaviour.cs
2026-02-21 16:45:37 +08:00

24 lines
517 B
C#

using SRDebugger.Internal;
using UnityEngine;
using UnityEngine.UI;
namespace SRDebugger.UI.Other
{
[RequireComponent(typeof(ScrollRect))]
public class ScrollSettingsBehaviour : MonoBehaviour
{
public const float ScrollSensitivity = 40f;
private void Awake()
{
ScrollRect component = GetComponent<ScrollRect>();
component.scrollSensitivity = 40f;
if (!SRDebuggerUtil.IsMobilePlatform)
{
component.movementType = ScrollRect.MovementType.Clamped;
component.inertia = false;
}
}
}
}