soundvision/UnityProject/Assets/Scenes/Examples/VisualEffectGraph/script/PitchVFXBind.cs
2020-03-04 21:47:24 +01:00

15 lines
382 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.VFX;
public class PitchVFXBind : MonoBehaviour
{
[SerializeField] private VisualEffect targetVfx = null;
private static readonly string pitchValue = "Pitch Value";
public void OnEnergyChanged(float energy)
{
targetVfx.SetFloat(pitchValue, energy);
}
}