Unity Material coming up as null from UIToolkit, and it won’t set custom attributes
Summary A developer is attempting to animate a custom shader parameter (_RevealAmount) on a VisualElement in Unity’s UI Toolkit. The unityMaterial property appears as null at runtime, and setting attributes on it fails to update the screen. The root cause is that UI Toolkit materials are immutable copies used for inline styles. Attempting to mutate … Read more