Search the Community

Showing results for tags 'dispose textures'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hello, I have this function to remove certain meshes & materials: function removePiece(rand) { var meshes = scene.getMeshesByTags('mesh' + rand); for (var i = 0; i < meshes.length; i++) { console.log(meshes[i].name); meshes[i].dispose(); } var materials = scene.getMaterialByTags('material' + rand); for (var i = 0; i < materials.length; i++) { console.log(materials[i].name); materials[i].dispose(); } } I have added tags to the textures, but as we don't seem to have a getTexturesByTags it's probably not the right way. Does anyone have a bright idea how do I go about removing textures? Thank you,