Dad72 Posted March 2, 2015 Share Posted March 2, 2015 Hello, I'm not sure how to remove an instantiated object. I know you can do on a object: mesh.dispose(), but this remove all the objects instantiate. How delete, object instantiate from the source. Thank you for help Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 2, 2015 Share Posted March 2, 2015 instance.dispose() Quote Link to comment Share on other sites More sharing options...
Dad72 Posted March 2, 2015 Author Share Posted March 2, 2015 And it brings up to date automatically has sources in "mesh.instances[]" For that I will update the files babylon sources each time with my own serializer of scene. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 2, 2015 Share Posted March 2, 2015 Sorry I did not get it Quote Link to comment Share on other sites More sharing options...
Dad72 Posted March 2, 2015 Author Share Posted March 2, 2015 Dans le fichier source ( .babylon) de l'objet on peut voir toutes les instances dans mesh.instances[0]. je voulais donc savoir si quand je fait instance.dispose() donc en supprimant une des instances créer, cela supprime l'instance de ce tableau dans le modèle source de façons a pouvoir enregistrer le fichier (.babylon) avec l'instance en moins. en faite j'ai créer mon propre serializer d'objet qui me permet de mettre a jour directement les fichier .babylon. comme ca quand je recharge ma scène, tout est charger a partir des fichier .babylon avec toutes les modification faites. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 2, 2015 Share Posted March 2, 2015 oui oui ca supprime bien du tableau Quote Link to comment Share on other sites More sharing options...
Dad72 Posted March 2, 2015 Author Share Posted March 2, 2015 Cool. Merci Delta. Thank you very much 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.