If I recall correctly (and it has been awhile) you can convert spatial materials to shader code, so maybe that will work?
Another idea could be taking the toon shader from the material, change the first pass into a normal PBR setup, and then add emission to the outline pass. That way you could get a glowing outline without any code.