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

Commit f02df2a

Browse files
authored
Merge pull request #13 from Netherlands3D/feature/scene-layers
Feature/scene layers
2 parents d07d150 + 108c506 commit f02df2a

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
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.5.3] - 13-06-2024
9+
10+
### Fixed
11+
- Instantiated gltf scenes now recursively acquire the layer of the Content gameObject.
12+
813
## [1.5.2] - 07-06-2024
914

1015
### Fixed

Runtime/Scripts/Tileset/Content.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ private async void GotGltfContent(ParsedGltf parsedGltf)
137137
{
138138
await gltf.InstantiateSceneAsync(transform, i);
139139
scene = transform.GetChild(i).transform;
140+
foreach (var child in scene.GetComponentsInChildren<Transform>(true)) //getting the Transform components ensures the layer of each recursive child is set
141+
{
142+
child.gameObject.layer = gameObject.layer;
143+
}
144+
140145
if(scene == null) continue;
141146

142147
// MovingOriginFollower sceneOriginFollower = scene.gameObject.AddComponent<MovingOriginFollower>();

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.2",
4+
"version": "1.5.3",
55
"unity": "2022.2",
66
"type": "library",
77
"keywords": [

0 commit comments

Comments
 (0)