[SOLVED] Is there a way to edit to GLB model from the URL loader?

Hey guys, I am using the GLB loader very often, and I am wondering could I change settings of the entity loaded by ‘loadGlbContainerFromUrl’ methonds? like the color, render properties etc…

utils.loadGlbContainerFromUrl(this.glbUrl, null, 'externalModel', function (err, asset) {

        var renderRootEntity = asset.resource.instantiateRenderEntity();


        //self.entity.children[0].render.lightmapped = true;


The container asset will also have all the materials and texture assets as well via asset.resource.textures, asset.resource.animations, asset.resource.materials

Also once the entity is instantiated, you can go through all the render components and change the materials/textures etc via the render component

1 Like

when you instantiate, you can set render properties this way as well:

                const entity = assets.resource.instantiateRenderEntity({
                    castShadows: true,
                    receiveShadows: true


Greatttt, Thank you!!