23 lines
688 B
C#
23 lines
688 B
C#
using UnityEngine;
|
|
|
|
namespace BaseGames.Camera
|
|
{
|
|
[CreateAssetMenu(menuName = "BaseGames/Camera/CameraConfig")]
|
|
public class CameraConfigSO : ScriptableObject
|
|
{
|
|
[Header("跟随")]
|
|
public float FollowDamping = 0.15f;
|
|
public float LookAheadTime = 0.3f;
|
|
public float LookAheadSmoothing = 0.1f;
|
|
public Vector2 DeadZoneSize = new Vector2(1f, 0.5f);
|
|
public Vector2 SoftZoneSize = new Vector2(2.5f, 2f);
|
|
|
|
[Header("偏移")]
|
|
public float LookDownOffset = -1.5f;
|
|
public float LookUpOffset = 1.5f;
|
|
|
|
[Header("画面抖动默认强度")]
|
|
public float DefaultImpulseStrength = 0.3f;
|
|
}
|
|
}
|