private static ClampCurve ( UnityEditor.SerializedProperty animCurveProperty, |
||
animCurveProperty | UnityEditor.SerializedProperty | |
curveRanges | ||
리턴 | void |
public static void PasteAnimationCurves(SerializedProperty animCurveProperty, SerializedProperty animCurveProperty2, SerializedProperty scalarProperty, Rect curveRanges, ParticleSystemCurveEditor particleSystemCurveEditor) { if (animCurveProperty != null && ParticleSystemClipboard.m_AnimationCurve1 != null) { animCurveProperty.animationCurveValue = ParticleSystemClipboard.m_AnimationCurve1; ParticleSystemClipboard.ClampCurve(animCurveProperty, curveRanges); } if (animCurveProperty2 != null && ParticleSystemClipboard.m_AnimationCurve2 != null) { animCurveProperty2.animationCurveValue = ParticleSystemClipboard.m_AnimationCurve2; ParticleSystemClipboard.ClampCurve(animCurveProperty2, curveRanges); } if (scalarProperty != null) { scalarProperty.floatValue = ParticleSystemClipboard.m_AnimationCurveScalar; } if (particleSystemCurveEditor != null) { particleSystemCurveEditor.Refresh(); } }