3d Node opacity or Material color change

is there any way to change the opacity of 3d node
or changing material color with typescript ??
please give your suggestion .
Thank you

  1. Modify the technique of the material to transparent.
  2. 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