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

Method OnActiveInTreeChanged

Source/Engine/Particles/ParticleEffect.cpp:828–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826}
827
828void ParticleEffect::OnActiveInTreeChanged()
829{
830 // Base
831 Actor::OnActiveInTreeChanged();
832
833 if (!IsActiveInHierarchy())
834 {
835 // Invalidate the simulation
836 CacheModifiedParameters();
837 Instance.ClearState();
838 }
839 else
840 {
841 ApplyModifiedParameters();
842 }
843}
844
845void ParticleEffect::OnTransformChanged()
846{

Callers

nothing calls this directly

Calls 2

IsActiveInHierarchyFunction · 0.85
ClearStateMethod · 0.45

Tested by

no test coverage detected