Files
aibis-dream/Assets/VolFx/ScreenFx/Runtime/Timeline/Camera/NoiseAsset.cs
T
2025-01-18 11:38:58 +08:00

22 lines
699 B
C#

using System;
using UnityEngine;
using UnityEngine.Playables;
// ScreenFx © NullTale - https://x.com/NullTale
namespace ScreenFx
{
[Serializable]
public class NoiseAsset : PlayableAsset
{
[InplaceField(nameof(NoiseBehaviour._freq), nameof(NoiseBehaviour._move), nameof(NoiseBehaviour._torque), nameof(NoiseBehaviour._noise))]
public NoiseBehaviour _template;
// =======================================================================
public override Playable CreatePlayable(PlayableGraph graph, GameObject go)
{
var playable = ScriptPlayable<NoiseBehaviour>.Create(graph, _template);
return playable;
}
}
}