You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/asset/asset.js
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,13 @@ class Asset extends EventHandler {
110
110
* @param {Asset} asset - The asset that was loaded.
111
111
*/
112
112
113
+
/**
114
+
* @event
115
+
* @name Asset#unload
116
+
* @description Fired just before the asset unloads the resource. This allows for the opportunity to prepare for an asset that will be unloaded. E.g. Changing the texture of a model to a default before the one it was using is unloaded.
117
+
* @param {Asset} asset - The asset that is due to be unloaded.
0 commit comments