An example of how to change AR Foundation Occlusion Settings in Runtime
Example of how this looks can be found in Twitter at: https://twitter.com/Dilmerv
Note: There is a URP version of this project so make sure to look at the feature/URPOcclusion branch if you like to use that option.