reddozen Posted October 26, 2015 Share Posted October 26, 2015 Suppose I want to swap out a merged mesh for another. 1) Would this essentially work, or do I not need to dispose it since I'm setting it as a new equals?2) Can I dispose of the body sub parts after i create a merged mesh with them?playerCharacter.dispose();playerCharacter = BABYLON.Mesh.MergeMeshes([body, feet, hands, head, legs], true, true); Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 26, 2015 Share Posted October 26, 2015 Hey! 1. I don't see anything preventing this to work (And yes you need to dispose the previous one to save memory)2. Yep Quote Link to comment Share on other sites More sharing options...
reddozen Posted October 26, 2015 Author Share Posted October 26, 2015 Sounds good! Thanks. Hopefully have the RO2 paper doll working tonight. (No animations yet though, but we're getting there...) I'll post it up when it's done. 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.