libraries/zo_scene/zo_scenefragmenttemplates.lua:690 -- SCENE_MANAGER:RegisterCallback("SceneStateChanged", function(scene, oldState, newState)
if newState == SCENE_HIDING then
if scene:HasFragment(baseFragment) then
baseFragment:ResetOnHiding()
end
elseif newState == SCENE_HIDDEN then
if scene:HasFragment(baseFragment) then
baseFragment:ResetOnHidden()
end
end
end)