MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / CacheModifiedParameters

Method CacheModifiedParameters

Source/Engine/Particles/ParticleEffect.cpp:503–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501#endif
502
503void ParticleEffect::CacheModifiedParameters()
504{
505 if (_parameters.IsEmpty())
506 return;
507 PROFILE_MEM(Particles);
508 _parametersOverrides.Clear();
509 auto& parameters = GetParameters();
510 for (auto& param : parameters)
511 {
512 if (param.GetValue() != param.GetDefaultValue())
513 {
514 auto& e = _parametersOverrides.AddOne();
515 e.Track = param.GetTrackName();
516 e.Id = param.GetParamIdentifier();
517 e.Value = param.GetValue();
518 }
519 }
520}
521
522void ParticleEffect::ApplyModifiedParameters()
523{

Callers

nothing calls this directly

Calls 6

AddOneMethod · 0.80
GetParamIdentifierMethod · 0.80
IsEmptyMethod · 0.45
ClearMethod · 0.45
GetValueMethod · 0.45
GetDefaultValueMethod · 0.45

Tested by

no test coverage detected