Remote assets and occlusion


Hi, I'm trying to make an effect that combines custom landmarker with remote assets. Everything is working fine excepting that the remote asset doesn't respond to the landmarker mesh's depth buffer when the mesh's material is a 0 alpha occluder.

If I add another object, or I manually import the asset in the project everything works fine, the problem only happens when importing from remote. I've also tried manually seting the render layer via script but I couldn't make it work. Any ideas on what could be the problem?


  • varumora
    varumora Posts: 2
    edited October 2022 #2

    if anyone comes here I just fpound a solution aplying this function on the object:

    function setRenderOrder(so){
        var m = so.getComponents("Component.RenderMeshVisual");
        if(m != null){
            for(var j = 0; j< m.length; j++){
        for(var i=0; i<so.getChildrenCount(); i++)
            var child = so.getChild(i);

    6 is my render order for the landmark mesh, it could be different to you