<issue_start><issue_comment>Title: fix material asset unload and reload
username_0: Fixes #3061

I confirm I have signed the [Contributor License Agreement](https://docs.google.com/a/playcanvas.com/forms/d/1Ih69zQfJG-QDLIEpHr6CsaAs6fPORNOVnMv5nuo0cjk/viewform).
<issue_comment>username_1: @username_0 could you please give an overview of the changes you've made and why in the PR description?