Reset entites and vars

Fri 28. Feb 2020, 10:19

Hi, i'm using Articy:draft with unity and want to allow player to start a new game when he already started and modified some values on entites.

I tried:
Code: Select all
ArticyDatabase.ClearDatabase();
ArticyDatabase.DefaultGlobalVariables.ResetVariables();

But after call these lines and reload my scenes the values on the values of entites still changed and has no its original values.

How can I reset all my Articy vars and entites to the original values of the Project?

Thank you
Dureo
 
Posts: 3
Joined: Mon 14. Jan 2019, 15:04

Re: Reset entites and vars

Mon 2. Mar 2020, 16:58

Hi Dureo,

the code you tried should work.
Could it be that you are working on old references after clearing the database? Clearing the database basically unloads all packages and loads the default ones afterwards. That means, that you have to get the objects from the database again.


Best regards,

Chris
User avatar
[Articy] Christian Schildt
Articy Staff
Articy Staff
 
Posts: 62
Joined: Tue 16. Jan 2018, 17:03
Location: Bochum

Return to articy:draft Unity Importer

Who is online

Users browsing this forum: No registered users and 5 guests

Who We Are
Contact Us
Social Links