public void ApplyProperties()
{
bool hasModifiedProperties = this.m_ParticleSystemSerializedObject.hasModifiedProperties;
if (this.m_ParticleSystemSerializedObject.targetObject != null)
{
this.m_ParticleSystemSerializedObject.ApplyModifiedProperties();
}
if (hasModifiedProperties)
{
ParticleSystem[] particleSystems = this.m_ParticleSystems;
for (int i = 0; i < particleSystems.Length; i++)
{
ParticleSystem ps = particleSystems[i];
ParticleSystem root = ParticleSystemEditorUtils.GetRoot(ps);
if (!ParticleEffectUI.IsStopped(root) && ParticleSystemEditorUtils.editorResimulation)
{
ParticleSystemEditorUtils.PerformCompleteResimulation();
}
}
this.UpdateParticleSystemInfoString();
}
if (this.m_RendererSerializedObject != null && this.m_RendererSerializedObject.targetObject != null)
{
this.m_RendererSerializedObject.ApplyModifiedProperties();
}
}