Skip to main content
EchoExclusive
Inspiring
March 23, 2025
Solved

Saving progress like Citeldal

Hi Creators!

Citedal in horizon worlds here saves user progress. It will know how many levels I have completed. How are they doing that? Is it with persistent data? Or are there other ways to save level progression?

If it is persistent data, where can I find documentation on how to make persistent data in desktop editor with typescript?

I know how to create persistent variables with codeblocks but not in the desktop editor https://developers.meta.com/horizon-worlds/learn/documentation/vr-creation/scripting/use-persistent-variables/

Citedal: https://horizon.meta.com/world/279976781332952/?locale=en_US

Thanks!

 

PigeonNo12
Honored Contributor
March 24, 2025

100% with persistent data. Here's the TypeScript documentation:

https://developers.meta.com/horizon-worlds/learn/documentation/typescript/getting-started/persistent-variables-v2

TypeScript also unlocks the possibility of using objects as persistent variables, allowing you to package information instead of storing it one by one, and to save other type of data beyond numbers. Here's the documentation:

https://developers.meta.com/horizon-worlds/learn/documentation/typescript/getting-started/object-type-persistent-variables

Last, highly recommended to check the documentation around persistence in this document as well:

https://developers.meta.com/horizon-worlds/learn/documentation/mhcp-program/community-tutorials/creator-manual

Upcoming Events : Build with a Mentor: Custom UI Thursday 3/20 at 5:00 PM PT Register March calendar of all Mentor Workshops and Office Hours

2 replies

PigeonNo12
Honored Contributor
March 24, 2025

100% with persistent data. Here's the TypeScript documentation:

https://developers.meta.com/horizon-worlds/learn/documentation/typescript/getting-started/persistent-variables-v2

TypeScript also unlocks the possibility of using objects as persistent variables, allowing you to package information instead of storing it one by one, and to save other type of data beyond numbers. Here's the documentation:

https://developers.meta.com/horizon-worlds/learn/documentation/typescript/getting-started/object-type-persistent-variables

Last, highly recommended to check the documentation around persistence in this document as well:

https://developers.meta.com/horizon-worlds/learn/documentation/mhcp-program/community-tutorials/creator-manual

Upcoming Events : Build with a Mentor: Custom UI Thursday 3/20 at 5:00 PM PT Register March calendar of all Mentor Workshops and Office Hours
EchoExclusive
Inspiring
March 25, 2025

Thank you for the links. I will look into them!

Good to know it's still persistent data