Hello! How can I add material to element?
https://playcanvas.com/editor/scene/881081
I have this project, where in script matresolve.js i adding a basicmaterial to ui.
I do this for manipulate a blend mode for a material.
Hello! How can I add material to element?
https://playcanvas.com/editor/scene/881081
I have this project, where in script matresolve.js i adding a basicmaterial to ui.
I do this for manipulate a blend mode for a material.
Hi @pekarnik and welcome!
You can add a custom material to an Element only when it’s of image type:
https://developer.playcanvas.com/en/api/pc.ElementComponent.html#material
For text/buttons you will have to use the exposed properties to edit the output of the element, and sadly you can’t change the blendMode.