| 826 | } |
| 827 | |
| 828 | void 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 | |
| 845 | void ParticleEffect::OnTransformChanged() |
| 846 | { |
nothing calls this directly
no test coverage detected