FRBDK/Glue/ParticleEditorPlugin/ParticleEditorControls/Managers/ProjectManager.cs
/// <summary>
/// Handles updating old particle files that stored textures in
/// the particle blueprint object. If the emitterSave has a 
/// texture but the emissionSettings does not, it will
/// copy the texture from emitterSave to emissionSettings
/// </summary>
/// <param name="emitterSave">The emitter save to check.</param>
Handles updating old particle files that stored textures in
the particle blueprint object. If the emitterSave has a
texture but the emissionSettings does not, it will
copy the texture from emitterSave to emissionSettings
Handles updating old particle files that stored textures in the particle blueprint object . If the emitterSave has a texture but the emissionSettings does not it will copy the texture from emitterSave to emissionSettings
private void TryUpdateEmitterTextures(EmitterSave emitterSave)
        {
            if (emitterSave != null &&
                emitterSave.ParticleBlueprint != null &&
                !string.IsNullOrEmpty(emitterSave.ParticleBlueprint.Texture) &&
                string.IsNullOrEmpty(emitterSave.EmissionSettings.Texture))
            {
                emitterSave.EmissionSettings.Texture = emitterSave.ParticleBlueprint.Texture;
            }
        }
private void TryUpdateEmitterTextures ( EmitterSave emitterSave ) { if ( emitterSave != null && emitterSave . ParticleBlueprint != null && ! string . IsNullOrEmpty ( emitterSave . ParticleBlueprint . Texture ) && string . IsNullOrEmpty ( emitterSave . EmissionSettings . Texture ) ) { emitterSave . EmissionSettings . Texture = emitterSave . ParticleBlueprint . Texture ; } }
Handles updating old particle files that stored textures in
the particle blueprint object.
Handles updating old particle files that stored textures in the particle blueprint object .
emitterSave
EmitterSave
The emitter save to check.
The emitter save to check .