Uniform instances are not yet implemented for 'canvas_item' shaders.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Moreus

“Uniform instances are not yet implemented for ‘canvas_item’ shaders.”
any workaround before implementation?
in my case i want my Parent node control “speed” of children’s

:bust_in_silhouette: Reply From: Moreus

I found solution, duplicate shader in code then every instance can have different variable values.

C# code:

Material = new ShaderMaterial() { Shader = (Material as ShaderMaterial).Shader.Duplicate() as Shader};