Example #1
0
        private void CreateContextItem(object obj)
        {
            HGL_UCurveAnimationProperty animProp = new HGL_UCurveAnimationProperty((HGL_ClipProperty)obj);

            Controller.Clip.AnimationProperty.Add(animProp);
            addActionsMenuProperties = null;
            Repaint();
        }
Example #2
0
 private void DrawWorkspace()
 {
     EditorGUILayout.BeginVertical("Box", GUILayout.Width(350)); {
         int countProperties = Controller.Clip.AnimationProperty.Count;
         for (int i = 0; i < countProperties; i++)
         {
             HGL_UCurveAnimationProperty curveAnimProperty = (Controller.Clip.AnimationProperty[i] as HGL_UCurveAnimationProperty);
             curveAnimProperty.Curve = EditorGUILayout.CurveField(Controller.Clip.AnimationProperty[i].Property.ToString(), curveAnimProperty.Curve);
         }
     }
     EditorGUILayout.EndVertical();
 }