Restart Lens using script
Hello,
We would like to use script to reset (restart) the Lens as if it was launched again by the user (by tapping its icon on the carousel).
The current workaround is tedious : when the Lens has finished, we need to reset each and every node that was modified, to its original state.
For example if there is a Tween that Fades Out something, we also need to Fade In at restart, all variables need to be set to initial values.
All objects that were displayed by our scripts now need to be hidden at restart, all animations need to be set to start again, etc...
It's not difficult, but it's very time consuming, and it could lead to surprises if you forget something.
A script command "resetLens" function would solve it.
Thanks.
That would be great tbh.
Useful for a lot of things, such as game developing and such.
I Agree.
Agreed, that would help optimize almost all projects with interactions or "gamified" experiences. Would really appreciate something like that, whether a script or a built in way.