Select to view content in your preferred language

Seeking Guidance on Implementing Character Teleportation in Unity with ArcGIS Maps SDK

940
1
11-19-2023 08:06 AM
MuhammedKeles
New Contributor

Hello fellow developers,

I am currently working on a project in Unity using the ArcGIS Maps SDK and I've hit a bit of a roadblock. My goal is to enable the feature where with a single button click, my character can be instantly teleported to a different location within the map.

I'm not entirely sure about the best approach to implement this. Has anyone here worked with the ArcGIS Maps SDK in Unity and done something similar? I would greatly appreciate any insights or examples on how to effectively program this feature.

Specifically, I'm looking for guidance on:

  1. Managing geospatial coordinates for teleportation.
  2. Ensuring smooth transition and rendering of new locations.
  3. Handling any potential issues with map data loading or character positioning.

Any tips, code snippets, or resources that could point me in the right direction would be incredibly helpful.

Thank you in advance for your time and assistance!

Tags (1)
0 Kudos
1 Reply
ChrisAnderson7
Emerging Contributor
For smooth teleportation and other similar transitions, what I’ve seen done the most, is to fade to black, move the player, then fade back in. The fade only needs to be about a half second (about 1min total for transition). If the transition needs longer than a minute (due to scene loading and unloading for instance) you could have a completely separate loading scene that the player gets put into first, before the actual transition (Think assassins creed for instance).
0 Kudos