Exemple #1
0
 public void CreateRotationCurves()
 {
     TimelineEditorTools.CreateEmptyCurves(
         clip: TimelineEditor.selectedClip,
         type: this.GetType(),
         propertyNames: new List <string>(new string[] { "Rotation.x", "Rotation.y", "Rotation.z" })
         );
 }
Exemple #2
0
 public void CreateFlippedCurves()
 {
     TimelineEditorTools.CreateEmptyCurves(
         clip: TimelineEditor.selectedClip,
         type: this.GetType(),
         propertyNames: new List <string>(new string[] { "Flipped" }),
         defaultValues: new List <float>(new float[] { 1f })
         );
 }
Exemple #3
0
        public void CreateAllCurves()
        {
            string[] properties = { "Position.x", "Position.y", "Position.z",
                                    "Rotation.x", "Rotation.y", "Rotation.z",
                                    "Scale.x",    "Scale.y",    "Scale.z",
                                    "Active",     "Flipped" };
            float[]  values = { 0, 0, 0,
                                0,  0, 0,
                                1,  1, 1,
                                1, 0 };

            TimelineEditorTools.CreateEmptyCurves(
                clip: TimelineEditor.selectedClip,
                type: this.GetType(),
                propertyNames: new List <string>(properties),
                defaultValues: new List <float>(values)
                );
        }