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

Method OnEndPlay

Source/Engine/UI/SpriteRender.cpp:192–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void SpriteRender::OnEndPlay()
193{
194 // Base
195 Actor::OnEndPlay();
196
197 // Release material instance
198 if (_materialInstance)
199 {
200 _materialInstance->SetBaseMaterial(nullptr);
201 _materialInstance->Params.Resize(0);
202 _materialInstance->RemoveReference();
203 _materialInstance = nullptr;
204 }
205}
206
207void SpriteRender::OnEnable()
208{

Callers

nothing calls this directly

Calls 4

OnEndPlayFunction · 0.85
SetBaseMaterialMethod · 0.80
ResizeMethod · 0.45
RemoveReferenceMethod · 0.45

Tested by

no test coverage detected