Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit ea71520

Browse files
committed
add new event that returns whole webrequest object
1 parent f02df2a commit ea71520

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this package will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [1.6.0] - 18-07-2024
9+
10+
### Added
11+
- Added new event that returns the internal UnityWebRequest after requesting the tileset .json
12+
813
## [1.5.3] - 13-06-2024
914

1015
### Fixed
@@ -13,7 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1318
## [1.5.2] - 07-06-2024
1419

1520
### Fixed
16-
- tile-locations were incorrect after re-enabeling tileLayer
21+
- Tile-locations were incorrect after re-enabeling tileLayer
1722

1823
## [1.5.1] - 07-06-2024
1924

Runtime/Scripts/Read3DTileset.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ public class Read3DTileset : MonoBehaviour
7979

8080
[Space(2)]
8181
public UnityEvent<string[]> unsupportedExtensionsParsed;
82+
83+
public UnityEvent<UnityWebRequest> OnServerResponseReceived = new();
8284
public UnityEvent<UnityWebRequest.Result> OnServerRequestFailed = new();
8385

8486

@@ -346,6 +348,8 @@ IEnumerator LoadTileset()
346348
usedExtensions = extensions.Item1;
347349
unsupportedExtensionsParsed.Invoke(extensions.Item2);
348350
}
351+
352+
OnServerResponseReceived.Invoke(www);
349353
}
350354

351355
private void RequestContentUpdate(Tile tile)
@@ -589,6 +593,7 @@ private IEnumerator LoadNestedTileset(Tile tile)
589593
ParseTileset.ReadExplicitNode(node, tile);
590594
nestedTreeLoaded = true;
591595
}
596+
OnServerResponseReceived.Invoke(www);
592597
}
593598

594599
tile.isLoading = false;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "eu.netherlands3d.tiles3d",
33
"displayName": "Netherlands 3D - 3DTiles",
4-
"version": "1.5.3",
4+
"version": "1.6.0",
55
"unity": "2022.2",
66
"type": "library",
77
"keywords": [

0 commit comments

Comments
 (0)