Material.SetData

void SetData(string name, T& serializableData)

This allows you to set more complex shader data types such as structs. Note the SK doesn’t guard against setting data of the wrong size here, so pay extra attention to the size of your data here, and ensure it matched up with the shader!

   
string name Name of the shader parameter.
T& serializableData New value for the parameter.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!