soundvision/UnityProject/Assets/Scenes/Examples/VisualEffectGraph/script/FlareBind.cs
Chikashi Miyama 0dac7a812d fix VFX
2019-10-04 20:30:18 +02:00

13 lines
334 B
C#

using UnityEngine;
using UnityEngine.Experimental.VFX;
public class FlareBind : MonoBehaviour
{
[SerializeField] private VisualEffect flareEffect;
private static readonly string Spread = "spread";
public void OnEnergyChanged(float energy)
{
flareEffect.SetFloat(Spread, energy * 0.1f + 0.1f);
}
}