Add beautify post process to project

This commit is contained in:
Lucien
2026-08-03 16:52:25 +02:00
parent 3cd1ca53fd
commit 98a9c89de6
248 changed files with 23693 additions and 3085 deletions
@@ -0,0 +1,28 @@
using UnityEngine;
namespace Beautify.Universal {
[ExecuteAlways, RequireComponent(typeof(Camera))]
public class BeautifyDoFTargetPerCamera : MonoBehaviour {
public Transform target;
Camera _cam;
void OnEnable () {
_cam = GetComponent<Camera>();
var s = BeautifySettings.instance;
if (s != null) s.OnCameraBeforeAutofocus += Handle;
}
void OnDisable () {
var s = BeautifySettings.instance;
if (s != null) s.OnCameraBeforeAutofocus -= Handle;
}
void Handle (Camera cam, ref Transform current) {
if (cam != _cam) return;
if (target != null) current = target;
}
}
}