- Unity 6.2 → 6.3 업그레이드 - Beautify URP 에셋 업데이트 - Stylized Water 3 에셋 제거 - PIDI Planar Reflections shadergraph 업데이트 - 각종 메타파일 및 에셋 파일 Unity 6.3 호환 업데이트 - lilToon, AmplifyShaderEditor 등 외부 에셋 설정 변경 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
729 B
C#
28 lines
729 B
C#
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;
|
|
}
|
|
}
|
|
|
|
} |