phaselock Posted July 26, 2018 Share Posted July 26, 2018 Erm, again not sure what this is, I tried to create some gui elements and then immediately after use executeOnAllControls to dispose: https://www.babylonjs-playground.com/#XCPP9Y#583 You can see in the console that the textblocks created and those disposed are different. Is this due to registerBeforeRender ? Should I be using some other command ? Quote Link to comment Share on other sites More sharing options...
Guest Posted July 26, 2018 Share Posted July 26, 2018 Hello you cannot use executeOnAllControls to dispose then as you are currently iterating through the list But you can use executeOnAllControls to build an array of controls and then dispose from this array phaselock 1 Quote Link to comment Share on other sites More sharing options...
phaselock Posted July 27, 2018 Author Share Posted July 27, 2018 ok, I got it: https://www.babylonjs-playground.com/#XCPP9Y#586 Many thanks ! GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.