This commit is contained in:
2025-05-16 23:31:59 +08:00
parent 9e4fef3f1e
commit d891e3f0ee
1198 changed files with 274242 additions and 1558 deletions

View File

@@ -0,0 +1,30 @@
using UnityEngine;
namespace VLB
{
[DisallowMultipleComponent]
[RequireComponent(typeof(Light), typeof(VolumetricLightBeamHD))]
[HelpURL(Consts.Help.HD.UrlTrackRealtimeChangesOnLight)]
[AddComponentMenu(Consts.Help.HD.AddComponentMenuTrackRealtimeChangesOnLight)]
public class TrackRealtimeChangesOnLightHD : MonoBehaviour
{
public const string ClassName = "TrackRealtimeChangesOnLightHD";
VolumetricLightBeamHD m_Master = null;
void Awake()
{
m_Master = GetComponent<VolumetricLightBeamHD>();
Debug.Assert(m_Master);
}
void Update()
{
if(m_Master.enabled)
{
m_Master.AssignPropertiesFromAttachedSpotLight();
}
}
}
}