Assets/MovieProxy/Scripts/Tracks/MovieProxy/MovieProxyTrack.cs(22,37): error CS0506: `UTJTimelineUtil.MovieProxyTrack.CreatePlayable(UnityEngine.Playables.PlayableGraph, UnityEngine.GameObject, UnityEngine.Timeline.TimelineClip)': cannot override inherited member `UnityEngine.Timeline.TrackAsset.CreatePlayable(UnityEngine.Playables.PlayableGraph, UnityEngine.GameObject, UnityEngine.Timeline.TimelineClip)' because it is not marked virtual, abstract or override
Assets/MovieProxy/Scripts/Tracks/Fader/FaderTrack.cs(19,37): error CS0506: `UTJTimelineUtil.FaderTrack.CreatePlayable(UnityEngine.Playables.PlayableGraph, UnityEngine.GameObject, UnityEngine.Timeline.TimelineClip)': cannot override inherited member `UnityEngine.Timeline.TrackAsset.CreatePlayable(UnityEngine.Playables.PlayableGraph, UnityEngine.GameObject, UnityEngine.Timeline.TimelineClip)' because it is not marked virtual, abstract or override
1// 省略23namespace UTJTimelineUtil
4{5[System.Serializable]67 public class FaderPlayableAsset : PlayableAsset, ITimelineClipAsset
8{9 public Color m_color = Color.black;10 public bool m_noFade = false;11 public FadeType m_type = FadeType.FadeIn;12 public TimelineClip m_clip;// クリップへの参照を保持するフィールドを追加1314 public ClipCaps clipCaps
15{16 get
17{18return ClipCaps.None;19}20}2122 public override Playable CreatePlayable(PlayableGraph graph, GameObject go)23{24 var bh = new FaderPlayableBehaviour
25{26 m_clip = this.m_clip // PlayableBehaviourにクリップを伝達27};28return ScriptPlayable<FaderPlayableBehaviour>.Create(graph, bh);29}3031}3233 public enumFadeType34{35 FadeIn,36 FadeOut
37}38}
1// 省略23namespace UTJTimelineUtil
4{5[System.Serializable]6 public class MovieProxyPlayableAsset : PlayableAsset, ITimelineClipAsset
7{8[System.Serializable]9 public structStPicResolution10{11 public int Width;12 public int Height;13};14 public int Version;15 public MovieProxyPlayableAssetParam.StPicResolution Resolution;16 public string Folder;17 public string[] Pictures;18 private bool[] LoadRequested;19 public int m_loadingIndex =-1;20 private int m_sLastIndex =-1;21 public TimelineClip m_clip;// クリップへの参照を保持するフィールドを追加2223// 省略2425// Factory method that generates a playable based on this asset26 public override Playable CreatePlayable(PlayableGraph graph, GameObject go)27{28 var bh = new MovieProxyPlayableBehaviour
29{30 m_clip = this.m_clip // PlayableBehaviourにクリップを伝達31};32return ScriptPlayable<MovieProxyPlayableBehaviour>.Create(graph, bh);33}3435// 省略3637}3839// 省略4041}
1// 省略23namespace UTJTimelineUtil
4{5[TrackClipType(typeof(MovieProxyPlayableAsset))]6[TrackBindingType(typeof(MovieProxyNativeRenderer))]7[TrackMediaType(TimelineAsset.MediaType.Script)]8[TrackColor(0.776f,0.263f,0.09f)]9 public class MovieProxyTrack : TrackAsset
10{11 LoaderPeriodicJob m_LoaderPeriodicJob;12 public MovieProxyTrack()13{14 Util.Log("MovieProxyTrack creating ObserverPeriodicJob");15 m_LoaderPeriodicJob = new LoaderPeriodicJob(this);16 m_LoaderPeriodicJob.AddToUpdateManger();17// above job is removed when finished to load by calling RemoveIfFinished();18}1920// CreatePlayableは削除2122 public override Playable CreateTrackMixer(PlayableGraph graph, GameObject go,int inputCount)23{24// ミキサー生成前に、まずこのトラック上の全クリップを列挙し、それと対応するプレイアブルアセットにクリップの参照を伝達する25foreach(var clip in this.GetClips())26{27(clip.asset as MovieProxyPlayableAsset).m_clip = clip;28}2930 var mixer = ScriptPlayable<MovieProxyPlayableMixer>.Create(graph, inputCount);31 var director = go.GetComponent<PlayableDirector>();32if(director != null)33{34 var outputGo = director.GetGenericBinding(this) as MovieProxyNativeRenderer;35 MovieProxyPlayableMixer bh = mixer.GetBehaviour();36if(outputGo != null)37{38 bh.boundGameObject = outputGo.gameObject;39}40 bh.m_PlayableDirector = director;4142}43return mixer;44}45}46}
1// 省略23namespace UTJTimelineUtil
4{56#ifUNITY_EDITOR7[InitializeOnLoad]8#endif9 public class UpdateManager
10{1112// 省略1314static public PlayableDirector GetCurrentDirector()15{16 EditorWindow timelineWindow = UpdateManager.GetTimelineWindow();1718if(timelineWindow == null)19{20return null;21}22 var bf = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.GetField;23 var type = timelineWindow.GetType();24 var info = type.GetProperty("state", bf);25 var val = info.GetValue(timelineWindow, null);2627// プロパティ名や場所が変わったみたいなので修正28 type = val.GetType();29 info = type.GetProperty("editSequence", bf);30 val = info.GetValue(val, null);31 type = val.GetType();32 info = type.GetProperty("director", bf);33 val = info.GetValue(val, null);3435return val as PlayableDirector;36}3738// 省略3940static public List<TrackAsset>GetTrackList(TimelineAsset timelineAsset)41{42// TimelineAssetに関する子トラック取得の方法を変更43return timelineAsset.GetRootTracks().ToList();44}4546static public List<TrackAsset>GetTrackList(GroupTrack groupTrack)47{48// GroupTrackに関する子トラック取得の方法を変更49return groupTrack.GetChildTracks().ToList();50}5152// 省略53}5455// 省略56}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。