Show() static private method

static private Show ( Rect position, UnityEditor.SerializedProperty property, UnityEditor.SerializedProperty property2, UnityEditor.SerializedProperty scalar, Rect curveRanges, ParticleSystemCurveEditor curveEditor ) : void
position UnityEngine.Rect
property UnityEditor.SerializedProperty
property2 UnityEditor.SerializedProperty
scalar UnityEditor.SerializedProperty
curveRanges UnityEngine.Rect
curveEditor ParticleSystemCurveEditor
return void
示例#1
0
 public bool OnCurveAreaMouseDown(int button, Rect drawRect, Rect curveRanges)
 {
     if (button == 0)
     {
         this.ToggleCurveInEditor();
         return(true);
     }
     if (button == 1)
     {
         AnimationCurveContextMenu.Show(drawRect, this.maxCurve, this.GetMinCurve(), this.scalar, curveRanges, this.m_Module.GetParticleSystemCurveEditor());
         return(true);
     }
     return(false);
 }
        public bool OnCurveAreaMouseDown(int button, Rect drawRect, Rect curveRanges)
        {
            bool result;

            if (button == 0)
            {
                this.ToggleCurveInEditor();
                result = true;
            }
            else if (button == 1)
            {
                SerializedProperty serializedProperty = this.GetMinCurve();
                AnimationCurveContextMenu.Show(drawRect, (this.maxCurve == null) ? null : this.maxCurve.Copy(), (serializedProperty == null) ? null : serializedProperty.Copy(), (this.scalar == null) ? null : this.scalar.Copy(), curveRanges, this.m_Module.GetParticleSystemCurveEditor());
                result = true;
            }
            else
            {
                result = false;
            }
            return(result);
        }
示例#3
0
        public bool OnCurveAreaMouseDown(int button, Rect drawRect, Rect curveRanges)
        {
            if (button == 0)
            {
                ToggleCurveInEditor();
                return(true);
            }

            if (button == 1)
            {
                SerializedProperty minCurve = GetMinCurve();
                AnimationCurveContextMenu.Show(drawRect,
                                               maxCurve != null ? maxCurve.Copy() : null,
                                               minCurve != null ? minCurve.Copy() : null,
                                               scalar != null ? scalar.Copy() : null,
                                               curveRanges, m_Module.GetParticleSystemCurveEditor());
                return(true);
            }

            return(false);
        }