Comment on page
AR Map Session
Unity Sample Scene - Content Placement
This scene is used for Localization, post localization the contents of the scene are initiated at their desired location. Contents in Map are placed relative to the Map Origin. This scene has also examples of Location Pins and Tours.
This Scene requires Location (Precise) and Camera permission for its work.
ARMapController is the script that handles the loading of Map contents in AR, each content is initiated as Unity Gameobject, developers can use this script to customize the behavior of Content like its visibility, adding more interaction, custom logic, etc.
Content Types:
- 1.Texts
- 2.Images
- 3.3D Models (glb)
- 4.Audios
- 5.Waypoints (tours)
- 6.Location Pins
Using the ID property of content to enable visibility
1
2
#region TextContent
3
foreach (Text3D text in arContent.texts)
4
{
5
6
if (text.id == "text_60954")
7
{
8
ContentStorageManager.Instance.LoadTextData(text);
9
}
10
if (text.id == "text_92055")
11
{
12
ContentStorageManager.Instance.LoadTextData(text);
13
}
14
}
15
#endregion
Last modified 2mo ago