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: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,19 @@
24
24
* TextureSource will now remove its respective WebGLTexture from the renderer when destroyed.
25
25
* TextureSource will now automatically create a glTexture from its canvas if using one.
26
26
* WebGLRenderer will now remove a GL texture from its local `nativeTextures` array when you call the `deleteTexture` method.
27
+
* The BaseCache has a new method `exists` that will return a boolean if an entry for the given key exists in the cache or not.
28
+
* Loader.File has a new argument in its constructor which is an instance of the LoaderPlugin. It stores this in the `loader` property. It also has a new property `cache` which is a reference to the cache that the file type will be stored in.
29
+
* Loader.File has a new method `hasCacheConflict` which checks if a key matching the one used by this file exists in the target Cache or not.
30
+
* Loader.File has a new method `addToCache` which will add the file to its target cache and then emit a `filecomplete` event, passing its key and a reference to itself to the listener.
31
+
* LoaderPlugin has a new property `cacheManager` which is a reference to the global game cache and is used by the File Types.
32
+
* LoaderPlugin has a new property `textureManager` which is a reference to the global Texture Manager and is used by the File Types.
33
+
* LoaderPlugin will now check to see if loading a file would cache a cache conflict or not, and prevent it if it will.
34
+
* LoaderPlugin now passes off processing of the final file data to the file itself, which will now self-add itself to its target cache.
27
35
28
36
### Bug Fixes
29
37
30
38
* DataManagerPlugin would throw an error on Game.destroy if you had any Scenes in the Scene Manager had not been run. Fix #3596 (thanks @kuoruan)
39
+
* If you created a Game with no Scenes defined, and then added one via `Game.scene.add` and passed in a data object, the data would be ignored when starting the Scene.
0 commit comments