ECM2
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user