Skip to content

Commit f363443

Browse files
committed
Update documentation, minor cleanup
1 parent 6af3572 commit f363443

File tree

5 files changed

+25
-15
lines changed

5 files changed

+25
-15
lines changed

Assets/CesiumForUnitySamples/Scenes/08_CesiumArchitecturalDesign.unity

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,15 @@ PrefabInstance:
209209
- target: {fileID: 7752603225714643755, guid: d1f6fb4b452d026489986bf620a2d8bc,
210210
type: 3}
211211
propertyPath: m_text
212-
value: "In this scene, explore the buildings of New York City by viewing per-building
213-
metadata. \r\n\r\nClick the play button to test out the scene. Use your mouse
214-
to aim the crosshair at a building, then left click to view its metadata.
215-
If you need to free the cursor, press the Escape key to unlock it from the
216-
scene view.\n\r\nCheck out the \"Cesium Samples Metadata Picking\" script
217-
for an example of how to access this metadata via the Cesium For Unity API.\r\n\r\nPress
218-
\"1\" in the editor to return to this view.\r\n"
212+
value: "In this scene, explore the features of the Snowdon Architectural tileset,
213+
which includes 3D Tiles 1.1 features and metadata extensions, both supported
214+
by Cesium for Unity.\r\n\r\nClick the play button to test the scene. Use
215+
your mouse to click on any part of the building to display that feature's
216+
metadata in the on-screen widget. You can also use the Layer Toggle widget
217+
to turn on and off different layers.\r\n\r\nCheck out the \"Cesium Samples
218+
Toggle Layer\" and \"Cesium Samples Metadata Picking AEC\" scripts to find
219+
out how layer toggling and metadata picking is implemented. \n\r\nPress \"1\"
220+
in the editor to return to this view.\r\n"
219221
objectReference: {fileID: 0}
220222
- target: {fileID: 7752603225896829094, guid: d1f6fb4b452d026489986bf620a2d8bc,
221223
type: 3}
@@ -360,7 +362,7 @@ PrefabInstance:
360362
- target: {fileID: 7752603227654311266, guid: d1f6fb4b452d026489986bf620a2d8bc,
361363
type: 3}
362364
propertyPath: m_SizeDelta.y
363-
value: 145
365+
value: 165
364366
objectReference: {fileID: 0}
365367
m_RemovedComponents: []
366368
m_RemovedGameObjects: []
@@ -2940,7 +2942,7 @@ Transform:
29402942
m_PrefabAsset: {fileID: 0}
29412943
m_GameObject: {fileID: 1566737972}
29422944
serializedVersion: 2
2943-
m_LocalRotation: {x: 0, y: 6.1953623e-18, z: -9.228018e-18, w: 1}
2945+
m_LocalRotation: {x: 0, y: 6.6628166e-18, z: -1.9472976e-17, w: 1}
29442946
m_LocalPosition: {x: 0, y: 0, z: 0}
29452947
m_LocalScale: {x: 1, y: 1, z: 1}
29462948
m_ConstrainProportionsScale: 0
@@ -2976,16 +2978,16 @@ MonoBehaviour:
29762978
_localToGlobeFixedMatrix:
29772979
c0:
29782980
x: 0.9844621699588111
2979-
y: 0.1755967992874269
2980-
z: -0.00000000000000001423837244229721
2981+
y: 0.17559679928742694
2982+
z: -0.000000000000000034802128342998265
29812983
w: 0
29822984
c1:
2983-
x: 0.13447099995402617
2985+
x: 0.1344709999540262
29842986
y: -0.7538953611254723
29852987
z: 0.6430857910456876
29862988
w: 0
29872989
c2:
2988-
x: -0.11292380657484577
2990+
x: -0.11292380657484576
29892991
y: 0.6330936333225162
29902992
z: 0.7657941403243707
29912993
w: 0

Assets/CesiumForUnitySamples/Scripts/CesiumToggleLayer.cs renamed to Assets/CesiumForUnitySamples/Scripts/CesiumSamplesToggleLayer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using UnityEngine.UI;
33

44
[RequireComponent(typeof(Toggle))]
5-
public class CesiumToggleLayer : MonoBehaviour
5+
public class CesiumSamplesToggleLayer : MonoBehaviour
66
{
77
[SerializeField] private GameObject target;
88
private Toggle toggle;
@@ -17,7 +17,7 @@ private void Awake()
1717
}
1818
else
1919
{
20-
Debug.LogError("CesiumToggleLayer requires a Toggle component on the same GameObject.");
20+
Debug.LogError("CesiumSamplesToggleLayer requires a Toggle component on the same GameObject.");
2121
}
2222
}
2323

Images~/architectural_design.jpg

153 KB
Loading

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ projects in the [Photorealistic 3D Tiles from Google Maps Platform tutorial](htt
7272

7373
*<p align="center">The Googleplex in Mountain View, California visualized with Photorealistic 3D Tiles in Cesium for Unity.<br>Open <b>07_CesiumGoogleMapsTiles</b> in the Cesium for Unity Samples to explore the world as Photorealistic 3D Tiles.</p>*
7474

75+
### :eight: Level 8 - Architectural Design
76+
77+
This level showcases an architectural design model streamed into Unity using 3D Tiles. It demonstrates the ability to toggle the visibility of different design layers and click on individual building features to display associated metadata.
78+
79+
![The Googleplex in Mountain View, California visualized with Photorealistic 3D Tiles in Cesium for Unity.](Images~/architectural_design.jpg)
80+
81+
*<p align="center">Snowdon Sample Model from Autodesk Revit, streamed with 3D Tiles and visualized using Cesium for Unity.<br>Open <b>08_CesiumArchitecturalDesign</b> in the Cesium for Unity Samples to learn more about streaming architectural designs using 3D Tiles.</p>*
82+
7583
### :goggles: :one: VR Level 1 - Denver Photogrammetry
7684

7785
Cesium for Unity supports virtual reality platforms. This level is set up for users with VR headsets to get started quickly. In this scene, explore high-resolution photogrammetry data of Denver, Colorado with VR controller support. To build this for the Oculus Quest 2, open **VR01_CesiumDenver** in the Unity Editor and follow the instructions to build an `APK` file for the headset. These instructions also appear in the UI of the scene itself.

0 commit comments

Comments
 (0)