# Using a mock environment or private wayspot with the VPS tutorial

**URL:** <https://community.nianticspatial.com/t/using-a-mock-environment-or-private-wayspot-with-the-vps-tutorial/2179>\
**Category:** I'm Stuck\
**Created:** [June 8, 2022, 2:24pm UTC](https://community.nianticspatial.com/t/using-a-mock-environment-or-private-wayspot-with-the-vps-tutorial/2179 "2022-06-08T14:24:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Natalie\_Settles](https://avatars.discourse-cdn.com/v4/letter/n/db5fbb/32.png) [@Natalie\_Settles](https://community.nianticspatial.com/u/Natalie_Settles)\
**Post date:** [June 8, 2022, 2:24pm UTC](https://community.nianticspatial.com/t/using-a-mock-environment-or-private-wayspot-with-the-vps-tutorial/2179/1 "2022-06-08T14:24:14Z")

</div>

- **Issue category** : VPS / ARDK Virtual Studio Tools
- **Host machine & OS version** : Mac
- **Issue Environment** : Unity Mock
- **ARDK version** : 2.0
- **Unity version** : 2020.3.34

I’ve gone through the VPS tutorial on the 'Learn" section of the Lightship website and ran it in one of the virtual environments (Park pond / Livingroom) but it doesn’t work. I’ve also created a private wayspot in my studio, but don’t know how I would use that in the context of this tutorial. Is there a further video, or example in the ARDK, or place in the documentation where I can learn how to use a mock environment or my private mesh in order to develop using the VPS? I am in an area with no currently mapped VPS Wayspots so I need to start in a mock environment first until I or others can get a few locations on the map here.

---

<div class="post-metadata">

**Author:** ![Erik\_Brown](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/erik_brown/32/25_2.png) [@Erik\_Brown](https://community.nianticspatial.com/u/Erik_Brown)\
**Post date:** [June 8, 2022, 5:06pm UTC](https://community.nianticspatial.com/t/using-a-mock-environment-or-private-wayspot-with-the-vps-tutorial/2179/2 "2022-06-08T17:06:07Z")

</div>

Hi Natalie,

You mentioned the MOCK Environment doesn’t work. What expected outcome are you not experiencing? Which tutorial are you following? For better visibility, please provide a screenshot of your issue and a copy/paste of any console error logs. Creating private meshes allows developers who are not close to VPS activated locations an opportunity to localize against local user generated content. This way they can test the visual positioning system, placing persistent objects, etc. in private, without having to travel to the closest location to test. Engineering has been requested to create new VPS documentation and video tutorials, though current tutorials on mock environments and VPS can be found here:

[https://lightship.dev/docs/ardk/tools/vs\_mock\_mode.html](https://lightship.dev/docs/ardk/tools/vs_mock_mode.html)

[https://lightship.dev/docs/ardk/vps/index.html](https://lightship.dev/docs/ardk/vps/index.html)

---

<div class="post-metadata">

**Author:** ![Natalie\_Settles](https://avatars.discourse-cdn.com/v4/letter/n/db5fbb/32.png) [@Natalie\_Settles](https://community.nianticspatial.com/u/Natalie_Settles)\
**Post date:** [June 8, 2022, 8:57pm UTC](https://community.nianticspatial.com/t/using-a-mock-environment-or-private-wayspot-with-the-vps-tutorial/2179/3 "2022-06-08T20:57:00Z")

</div>

Hi Erik,

I’m following [this tutorial](https://lightship.dev/guides/building-with-vps/) and am getting no errors, however no prefabs are placed when I click on the detected horizontal planes. Below is a screen shot. I also built it to my iPhone and used it on my private scan here in the studio, and while it did localize, I could not place prefabs there either.

 ![Screen Shot 2022-06-08 at 4.51.17 PM](https://us1.discourse-cdn.com/niantic/original/1X/e5a8f7627c5c3db28b5ae99afd5a7b9e17c58fd1.jpeg)

However, I have been able to get the WayspotAnchors scene working that was included in the ARDK examples, so I’ll probably go ahead and use that as the basis for my further explorations.

---

<div class="post-metadata">

**Author:** ![Erik\_Brown](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/erik_brown/32/25_2.png) [@Erik\_Brown](https://community.nianticspatial.com/u/Erik_Brown)\
**Post date:** [June 10, 2022, 10:49pm UTC](https://community.nianticspatial.com/t/using-a-mock-environment-or-private-wayspot-with-the-vps-tutorial/2179/4 "2022-06-10T22:49:57Z")

</div>

Anchors not being displayed is an issue with ARGameLogic.cs’s _session.Ran += OnSessionRan_, because OnSessionRan is an empty function.

Try the solution below:

1. Change \_session.Ran += OnSessionRan to \_session.Ran += OnSessionStarted.
2. Remove the additional _session.Ran += OnSessionStarted_ line, or change it to \_session.Ran -= OnSessionStarted.

---

<div class="post-metadata">

**Author:** ![Rolf\_Kruse](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Rolf\_Kruse](https://community.nianticspatial.com/u/Rolf_Kruse)\
**Post date:** [August 22, 2022, 8:29am UTC](https://community.nianticspatial.com/t/using-a-mock-environment-or-private-wayspot-with-the-vps-tutorial/2179/5 "2022-08-22T08:29:46Z")

</div>

I ran into the same small trap with differently named functions _OnSessionRan_ and _OnSessionStarted_. It’s just with the video; the written tutorial seems to be consistent. Maybe someone can add a hint in the video.

---

<div class="post-metadata">

**Author:** ![Maverick\_Niantic](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@Maverick\_Niantic](https://community.nianticspatial.com/u/Maverick_Niantic)\
**Post date:** [March 5, 2026, 11:50pm UTC](https://community.nianticspatial.com/t/using-a-mock-environment-or-private-wayspot-with-the-vps-tutorial/2179/6 "2026-03-05T23:50:10Z")

</div>

Age
