19 lines
530 B
C#
19 lines
530 B
C#
using UnityEngine;
|
|
using UnityEngine.Playables;
|
|
using UnityEngine.Timeline;
|
|
|
|
namespace MaterialTrack.Group
|
|
{
|
|
public class MaterialGroupClip : PlayableAsset, ITimelineClipAsset
|
|
{
|
|
public RendererBehaviour template = new RendererBehaviour();
|
|
|
|
public ClipCaps clipCaps => ClipCaps.Blending | ClipCaps.Extrapolation;
|
|
|
|
public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
|
|
{
|
|
return ScriptPlayable<RendererBehaviour>.Create(graph, template);
|
|
}
|
|
}
|
|
}
|