using System.ComponentModel;
[DisplayName("Custem/CanvasRenderMode")]
위와 같이 입력하면
이렇게 메뉴가 펼처진다.
using System.ComponentModel;
using UnityEngine;
using UnityEngine.Playables;
using UnityEngine.Timeline;
[TrackColor(1f, 1f, 1f)]
[TrackClipType(typeof(CanvasRenderModeClip))]
[TrackBindingType(typeof(Canvas))]
[DisplayName("Custem/CanvasRenderMode")]
public class CanvasRenderModeTrack : TrackAsset
{
public override Playable CreateTrackMixer(PlayableGraph graph, GameObject go, int inputCount)
{
return ScriptPlayable<CanvasRenderModeMixerBehaviour>.Create (graph, inputCount);
}
}
'Unity > TimeLine' 카테고리의 다른 글
TimeLine.2 스크립트 함수 호출 (0) | 2020.06.19 |
---|---|
TimeLine. 1 (0) | 2020.06.19 |