Files
ichni_Official/Assets/Feel/MMFeedbacks/MMFeedbacksForThirdParty/PostProcessing/Springs/MMSpringVignetteCenter.cs
SoulliesOfficial d4e860fa16 initial
2025-06-03 02:42:28 -04:00

29 lines
669 B
C#

using UnityEngine;
#if MM_POSTPROCESSING
using UnityEngine.Rendering.PostProcessing;
namespace MoreMountains.Feedbacks
{
[AddComponentMenu("More Mountains/Springs/MMSpringVignetteCenter")]
public class MMSpringVignetteCenter : MMSpringVector2Component<PostProcessVolume>
{
protected Vignette _vignette;
protected override void Initialization()
{
if (Target == null)
{
Target = this.gameObject.GetComponent<PostProcessVolume>();
}
Target.profile.TryGetSettings(out _vignette);
base.Initialization();
}
public override Vector2 TargetVector2
{
get => _vignette.center;
set => _vignette.center.Override(value);
}
}
}
#endif