Get AR camera image always returns false in 4.25

Hey guys!

I found a solution which works for 4.25 Actually the material in the AR Kit content folder almost works. There is just one important setting you have to change. The important part is that you have to set the “Blendable Location” to “Before Tonemapping”. The original material is called “ARKitCameraMaterial” which you can use as base and find in the AppleARKit Content folder from the plugin.

Use this as Post Process blendable in combination with Stencils. Make sure you have “Custom Depth-Stencil Pass” set to “Enabled with Stencil” in Project Settings - Rendering - Postprocessing. Enable “Render CustomDepth Pass” on the Static Mesh Components and set the “CustomDepth Stencil Value” to something of your liking. I was using 1 as you can see on the screenshot below. Additionally in the material you can “Enable Stencil Test” in the advanced section of the Post Process Material details section. This way you don’t need to create a custom stencil test logic in the material (as seen in my previous answer).