# \[SOLVED\] Why material.name = Untitled? It was right one week ago

**URL:** <https://forum.playcanvas.com/t/solved-why-material-name-untitled-it-was-right-one-week-ago/7805>\
**Category:** Help & Support\
**Created:** [August 21, 2018, 2:28am UTC](https://forum.playcanvas.com/t/solved-why-material-name-untitled-it-was-right-one-week-ago/7805 "2018-08-21T02:28:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wefrenzy](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/w/0ea827/32.png) [@wefrenzy](https://forum.playcanvas.com/u/wefrenzy)\
**Post date:** [August 21, 2018, 2:28am UTC](https://forum.playcanvas.com/t/solved-why-material-name-untitled-it-was-right-one-week-ago/7805/1 "2018-08-21T02:28:09Z")

</div>

e.g

var TestMaterial = pc.createScript(‘testMaterial’);

TestMaterial.attributes.add(‘targetModel’, {type: ‘entity’, title: ‘Target Model’ });

TestMaterial.prototype.initialize = function() {  
console.log(this.targetModel.model.meshInstances[0].material.name);  
};

console: Untitled

It was right a week ago or earlier…

plz help me , how to get the Asset Material’s name??

here is my test project [PlayCanvas | HTML5 Game Engine](https://playcanvas.com/editor/scene/635554)

---

<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:** [August 21, 2018, 1:51pm UTC](https://forum.playcanvas.com/t/solved-why-material-name-untitled-it-was-right-one-week-ago/7805/2 "2018-08-21T13:51:29Z")

</div>

There was a change in version 1.6.3 that was released a few days ago.

That said, The material asset should have the name, the fact that the material resource also had the same name may be an unplanned side effect previously.

v 1.6.2 ‘works’: [https://launch.playcanvas.com/635795?debug=true&use\_local\_engine=https://code.playcanvas.com/playcanvas-1.6.2.js](https://launch.playcanvas.com/635795?debug=true&use_local_engine=https://code.playcanvas.com/playcanvas-1.6.2.js)

@dave may be able to help here in terms of whether it’s actually a bug?

---

<div class="post-metadata">

**Author:** ![dave](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/dave/32/4558_2.png) [@dave](https://forum.playcanvas.com/u/dave)\
**Post date:** [August 21, 2018, 6:56pm UTC](https://forum.playcanvas.com/t/solved-why-material-name-untitled-it-was-right-one-week-ago/7805/3 "2018-08-21T18:56:17Z")

</div>

This will be fixed in 1.6.5

---

<div class="post-metadata">

**Author:** ![dave](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/dave/32/4558_2.png) [@dave](https://forum.playcanvas.com/u/dave)\
**Post date:** [August 22, 2018, 12:33am UTC](https://forum.playcanvas.com/t/solved-why-material-name-untitled-it-was-right-one-week-ago/7805/4 "2018-08-22T00:33:38Z")

</div>

We now assign the asset name to the material name property again.

---

<div class="post-metadata">

**Author:** ![wefrenzy](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/w/0ea827/32.png) [@wefrenzy](https://forum.playcanvas.com/u/wefrenzy)\
**Post date:** [August 22, 2018, 1:01am UTC](https://forum.playcanvas.com/t/solved-why-material-name-untitled-it-was-right-one-week-ago/7805/5 "2018-08-22T01:01:19Z")

</div>

Thank you very much !
