Segmented Dimming canvas

I'm creating a texture on the fly in code it updates every second. I'm turning pixels different colors and some transparent on two raw images. Identical. One parented to the other. On the child element i have the segmentedDimmerMaterial It throws an error right away because i have no texture.

Is this possible? Do i have to add the script at run time after the texture is created? Does segmented dimming work on raw Images on a canvas.

2022.2.0f1
ML2

error
Material 'SegmentedDimmerMaterial' with Shader 'Hidden/MagicLeap/Universal Render Pipeline/SegmentedDimmer/MaskShader' doesn't have a texture property '_MainTex'
UnityEngine.GUIUtility:ProcessEvent

Hi @janikows,

Does using a white/transparent texture in the meantime help fix this issue?

Best,

El