/// <summary> /// Saves the data into this PlaygroundSave. /// </summary> /// <param name="playgroundParticles">Playground particles.</param> public void Save(PlaygroundParticlesC playgroundParticles) { isSaving = true; transform = new PlaygroundTransformC(); transform.SetFromTransform (playgroundParticles.particleSystemTransform); settings.particleSystemRenderer.sharedMaterial = playgroundParticles.particleSystemRenderer.sharedMaterial; PlaygroundC.RunAsync(()=>{ playgroundParticles.CopyTo(settings); settings.snapshotData = playgroundParticles.playgroundCache.Clone(); isSaving = false; }); }
// Save the data into this PlaygroundSave public void Save (PlaygroundParticlesC playgroundParticles) { transform = new PlaygroundTransformC(); transform.SetFromTransform (playgroundParticles.particleSystemTransform); PlaygroundC.RunAsync(()=>{ playgroundParticles.CopyTo(settings); settings.snapshotData = playgroundParticles.playgroundCache.Clone(); }); }