Well, that's useful. I was just doing something that requires a custom struct in code since Blueprints can't handle 2d arrays. I'm sure ChatGPT would've brought this up to me when I asked, but it's great to go over it covered by a human with video. I have a somewhat related question that ChatGPT doesn't seem to understand. How can I pass an array of floats or a struct to a material shader? ChatGPT keeps telling me to plug in a texture then send the texture from code to the shader which just outputs the exact texture I'm trying to generate in the first place. I need to be sending it either the struct that holds the array or the array itself so the GPU can generate the texture rather than the CPU. I also just joined the Discord since I realize this is a more complicated question than is typical for YT.
Well, that's useful. I was just doing something that requires a custom struct in code since Blueprints can't handle 2d arrays. I'm sure ChatGPT would've brought this up to me when I asked, but it's great to go over it covered by a human with video.
I have a somewhat related question that ChatGPT doesn't seem to understand. How can I pass an array of floats or a struct to a material shader? ChatGPT keeps telling me to plug in a texture then send the texture from code to the shader which just outputs the exact texture I'm trying to generate in the first place. I need to be sending it either the struct that holds the array or the array itself so the GPU can generate the texture rather than the CPU.
I also just joined the Discord since I realize this is a more complicated question than is typical for YT.