• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. 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.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.

Undoing var registration

wgsoup

Well-known member
Featured Contributor
Joined
Jun 4, 2020
Messages
50
Reactions
499
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