private void AddCurves(MovieCurveClip clip) { float[] values = GetWorldValues(); for (int j = 0; j < values.Length; j++) { clip.AddCurve(new MovieCurve(clip.length, values[j], NAMES[j])); } }
private void AddCurvesForProp(MovieProperty prop, MovieCurveClip clip, int index) { float[] values = prop.GetValues(this.component); for (int j = 0; j < values.Length; j++) { int curveIdx = clip.AddCurve(new MovieCurve(clip.length, values[j], Translation.TryGetText("Property", prop.Name) + "." + j)); this.propIdxToCurveIdxes[index].Add(curveIdx); } }
public override void AddClipInternal(MovieCurveClip clip) { clip.length = this.AnimationFrameLength(); clip.AddCurve(new MovieCurve(clip.length, 0, "Length")); }
private void AddCurve(MovieCurveClip clip, int faceValIndex) { clip.AddCurve(new MovieCurve(clip.length, 0, faceVals[faceValIndex, 1])); }