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

**URL:** <https://forum.playcanvas.com/t/solved-is-there-a-way-to-edit-to-glb-model-from-the-url-loader/26669>\
**Category:** Help & Support\
**Tags:** editor\
**Created:** [July 20, 2022, 7:38am UTC](https://forum.playcanvas.com/t/solved-is-there-a-way-to-edit-to-glb-model-from-the-url-loader/26669 "2022-07-20T07:38:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkthegreat](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/d/d2c977/32.png) [@dkthegreat](https://forum.playcanvas.com/u/dkthegreat)\
**Post date:** [July 20, 2022, 7:38am UTC](https://forum.playcanvas.com/t/solved-is-there-a-way-to-edit-to-glb-model-from-the-url-loader/26669/1 "2022-07-20T07:38:01Z")

</div>

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…

````javascript

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

        var renderRootEntity = asset.resource.instantiateRenderEntity();

        self.entity.addChild(renderRootEntity);

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

    });```
````

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [July 20, 2022, 9:35am UTC](https://forum.playcanvas.com/t/solved-is-there-a-way-to-edit-to-glb-model-from-the-url-loader/26669/2 "2022-07-20T09:35:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [July 20, 2022, 10:21am UTC](https://forum.playcanvas.com/t/solved-is-there-a-way-to-edit-to-glb-model-from-the-url-loader/26669/3 "2022-07-20T10:21:51Z")

</div>

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

```javascript
                const entity = assets.resource.instantiateRenderEntity({
                    castShadows: true,
                    receiveShadows: true
                });

```

---

<div class="post-metadata">

**Author:** ![dkthegreat](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/d/d2c977/32.png) [@dkthegreat](https://forum.playcanvas.com/u/dkthegreat)\
**Post date:** [July 20, 2022, 10:34am UTC](https://forum.playcanvas.com/t/solved-is-there-a-way-to-edit-to-glb-model-from-the-url-loader/26669/4 "2022-07-20T10:34:47Z")

</div>

Greatttt, Thank you!!
