You can use chatGpt to write unity shaders and unity c code. I have been experimenting with chatGpt and it can do almost anything, only you have rephrase your questions to get the results you need. You can also give a class structure