is there any way to change the opacity of 3d node
or changing material color with typescript ??
please give your suggestion .
Thank you
- Modify the technique of the material to transparent.
- try this.
let cubeRender = node.getComponent(MeshRenderer);
let cubeMat = cubeRender.getMaterialInstance(0);
cubeMat.setProperty('albedo',new Color(255,0,0,122),0);
1 Like
Okay Thanks