You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.9 KiB

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace uc
{
[CreateAssetMenu(menuName = "UC/FMCR/ComposerSettings")]
public sealed class ComposerSettings : ScriptableObject
{
[Tooltip("Target offset from the object's center in LOCAL space which the Composer tracks. Use this to fine-tune the tracking target position when the desired area is not in the tracked object's center.")]
public Vector3 TrackedObjectOffset;
[SerializeField]
public float horizontalSoftDamping = 0.5f;
[SerializeField]
public float verticalSoftDamping = 0.5f;
[SerializeField]
public float dutchDamping = 0f;
[SerializeField]
[Range(0, 1)]
float softLeft = 0.47f;
[SerializeField]
[Range(0, 1)]
float softRight = 0.53f;
[SerializeField]
[Range(0, 1)]
float softTop = 0.55f;
[SerializeField]
[Range(0, 1)]
float softBottom = 0.45f;
[SerializeField]
[Range(0, 1)]
float hardLeft = 0.06f;
[SerializeField]
[Range(0, 1)]
float hardRight = 0.94f;
[SerializeField]
[Range(0, 1)]
float hardTop = 0.9f;
[SerializeField]
[Range(0, 1)]
float hardBottom = 0.1f;
[SerializeField]
[Range(-180,180)]
float dutch = 0;
public ComposerSettings() { }
public float Dutch { get { return dutch; } }
public float HardGuideBottom { get { return hardBottom; } }
public float HardGuideLeft { get { return hardLeft; } }
public Rect HardGuideRect { get { return new Rect(HardGuideLeft, HardGuideBottom, HardGuideRight - HardGuideLeft, HardGuideTop - HardGuideBottom); } }
public float HardGuideRight { get { return hardRight; } }
//public Vector4 HardGuideScreenPercents { get { return 0; } }
public float HardGuideTop { get { return hardTop; } }
public float HorizontalSoftTrackingSpeed { get { return horizontalSoftDamping / 10; } }
public float SoftGuideBottom { get { return softBottom; } }
public float SoftGuideLeft { get { return softLeft; } }
public Rect SoftGuideRect { get { return new Rect(SoftGuideLeft, SoftGuideBottom, SoftGuideRight - SoftGuideLeft, SoftGuideTop - SoftGuideBottom); } }
public float SoftGuideRight { get { return softRight; } }
//public Vector4 SoftGuideScreenPercents { get { return 0; } }
public float SoftGuideTop { get { return softTop; } }
public float VerticalSoftTrackingSpeed { get { return verticalSoftDamping / 10; } }
public float DutchTrackingSpeed { get { return dutchDamping / 10; } }
//public static void BlendSettings(ComposerSettings settingA, ComposerSettings settingB, float blendAmount, ref ComposerSettings blendedOutSettings) { }
}
}