private void ReadConf(string path) { if (path.EndsWith(".xml")) { config = SeqenceConfig.ReadXml(path); } else if (string.IsNullOrEmpty(path)) { config = new SeqenceConfig(); config.Read(path); } }
private void Initial(SeqenceConfig conf, PlayMode mode) { _time = 0; playMode = mode; config = conf; if (!blending) { if (blendMixPlayable.IsValid()) { blendMixPlayable.Destroy(); } if (blendPlayableOutput.IsOutputValid()) { graph.DestroyOutput(blendPlayableOutput); } } Build(); }
public void CreateSeqence(string path, PlayMode mode) { Dispose(); this.path = path; SeqenceConfig xconf = new SeqenceConfig(); xconf.tracks = new TrackData[1]; TrackData data = new TrackData(); data.type = AssetType.Marker; xconf.tracks[0] = data; xconf.Write(path); seqence = new XSeqence(xconf, mode); seqence.Finish = OnPlayFinish; AddRuntime(); seqence.Time = 1.0f; seqence.editMode = SeqencePlayMode.EditorRun; OnCreated(path, mode); }
public XSeqence(SeqenceConfig conf, PlayMode mode) { blending = false; Initial(conf, mode); }