CopyAnimationCurves() public static method

public static CopyAnimationCurves ( AnimationCurve animCurve, AnimationCurve animCurve2, float scalar ) : void
animCurve UnityEngine.AnimationCurve
animCurve2 UnityEngine.AnimationCurve
scalar float
return void
示例#1
0
        private void Copy()
        {
            AnimationCurve animCurve1 = m_Prop1 != null ? m_Prop1.animationCurveValue : null;
            AnimationCurve animCurve2 = m_Prop2 != null ? m_Prop2.animationCurveValue : null;
            float          scalar     = m_Scalar != null ? m_Scalar.floatValue : 1.0f;

            ParticleSystemClipboard.CopyAnimationCurves(animCurve1, animCurve2, scalar);
        }
        private void Copy()
        {
            AnimationCurve animCurve  = (this.m_Prop1 == null) ? null : this.m_Prop1.animationCurveValue;
            AnimationCurve animCurve2 = (this.m_Prop2 == null) ? null : this.m_Prop2.animationCurveValue;
            float          scalar     = (this.m_Scalar == null) ? 1f : this.m_Scalar.floatValue;

            ParticleSystemClipboard.CopyAnimationCurves(animCurve, animCurve2, scalar);
        }
        private void Copy()
        {
            AnimationCurve animationCurveValue = this.m_Prop1?.animationCurveValue;
            AnimationCurve curve2 = this.m_Prop2?.animationCurveValue;
            float          scalar = (this.m_Scalar == null) ? 1f : this.m_Scalar.floatValue;

            ParticleSystemClipboard.CopyAnimationCurves(animationCurveValue, curve2, scalar);
        }
 private void Copy()
 {
     ParticleSystemClipboard.CopyAnimationCurves(this.m_Prop1 == null ? (AnimationCurve)null : this.m_Prop1.animationCurveValue, this.m_Prop2 == null ? (AnimationCurve)null : this.m_Prop2.animationCurveValue, this.m_Scalar == null ? 1f : this.m_Scalar.floatValue);
 }