As shown in the question, when I use shaderMaterial to create custom materials, if I need to store data, I can find specialized data storage methods such as setfloat, setVector3, etc. in the API. However, obtaining the corresponding methods is very troublesome. I need to convert the corresponding materials into data format in order to access the corresponding custom properties. However, sometimes I often encounter the problem of data access failure. Although console.log can print it out, when taking specific values, there are often undefined or null states. May I ask if the official can provide a corresponding get method specifically
I’m not sure I understand, can you provide a PG that shows the problem you’re experiencing?
1 Like
Thank you, classmate. I have found the problem. I don’t need it for the time being