Jump to content

Search the Community

Showing results for tags 'dispose textures'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

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,
×
×
  • Create New...