• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.

Undoing var registration

wgsoup

Well-known member
Featured Contributor
Joined
Jun 4, 2020
Messages
49
Reactions
487
Hi everyone,

I'm trying to implement a function in my plugin to show on the UI all the rigidbodies for the selected Atom. This implies that the UI elements have to be destroyed and re-created everytime a new Atom is selected in the dropdown.

Looks like the software is unable to destroy the Toggles and Sliders if the same Atom has been selected already before. I tried adding a random string to the variable name, therefore creating new variables even if the same atom is selected, and seems to work fine.

I believe this may be related to the registration functions (RegisterBool, RegisterFloat... etc), deleting the UI elements doesn't remove the actual variable from the environment. Do you know if there's any way to undo the registration or unset the related jsonstorable?

Thank you, any suggestion is much appreciated.
 
Back
Top Bottom