Simple GrabPass Shader Can cause editor crash! [5.6.2p3]

Shader "Unlit/GrabPass"
{
    Properties
    {
        _DistortGrabTex ("Texture", 2D) = "white" {}
    }
    SubShader
    {
        Tags { "Queue"="Geometry+511" }
        GrabPass{ "_DistortGrabTex" }
    }
}

Just trying to see if I can set a custom grabpass texture. Every time I drag the material into the scene, the editor will crash for 100%

1 Like

The editor should never crash. Therefore, please submit a bug-report following the advice given in this document.

Bug report submitted. back to my question, Is my method feasible to get a custom defined grabpass texture?

Just want to confirm the issue.

We got a glass shader ( Unity Asset Store - The Best Assets for Game Making ) which uses a
GrabPass{ }

And as soon as I switch to platform Android, the editor crashes if I load the scene.
If I load the scene via script (starting from another scene), it works … o0

The same issue on 5.6.3p1. Do you already got an answer on your report?

nope, I got a work around approach using RenderCommand.Blit to do the custom grab