public static void PasteGradient(SerializedProperty gradientProperty, SerializedProperty gradientProperty2) { if ((gradientProperty != null) && (m_Gradient1 != null)) { gradientProperty.gradientValue = m_Gradient1; } if ((gradientProperty2 != null) && (m_Gradient2 != null)) { gradientProperty2.gradientValue = m_Gradient2; } } }
private void Paste() { ParticleSystemClipboard.PasteGradient(this.m_Prop1, null); if (this.m_Prop1 != null) { this.m_Prop1.serializedObject.ApplyModifiedProperties(); } GradientPreviewCache.ClearCache(); }