# AR in webXR, layers and stencils

**URL:** <https://discourse.threejs.org/t/ar-in-webxr-layers-and-stencils/41298>\
**Category:** Questions\
**Created:** [August 11, 2022, 1:16am UTC](https://discourse.threejs.org/t/ar-in-webxr-layers-and-stencils/41298 "2022-08-11T01:16:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShawnWhy](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@ShawnWhy](https://discourse.threejs.org/u/ShawnWhy)\
**Post date:** [August 11, 2022, 1:16am UTC](https://discourse.threejs.org/t/ar-in-webxr-layers-and-stencils/41298/1 "2022-08-11T01:16:27Z")

</div>

Hi, when using webxr in AR,

I have found that I cannot turn layers on and off by setting my camera to different layers  
I know that the first 3 layers are taken and have assigned object to the next three layers using  
children[4].layers.set(4)

and then

camera.layers.enable(4)  
camera.layers.set(4)

this does not make the object appear. May I ask if there is a special procedure that I need to perform?
