【add】主入口初始化

This commit is contained in:
2025-11-03 11:25:01 +08:00
commit 87e659271b
1903 changed files with 220684 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using System;
using UnityEngine;
namespace EPOOutline
{
[ExecuteAlways]
public class OnPreRenderEventTransferer : MonoBehaviour
{
private Camera attachedCamera;
public Action<Camera> OnPreRenderEvent;
private void Awake()
{
attachedCamera = GetComponent<Camera>();
}
private void OnPreRender()
{
if (OnPreRenderEvent != null)
OnPreRenderEvent(attachedCamera);
}
}
}