Closed raaan127 closed 2 months ago
Thank you for your reporting!
This behavior is a specification of the instantiated material and will be reproduced in Mask
as well as SoftMask
.
If RawImageTilingOffset
component directly modifies the material parameters of graphic.material
, the changes will not be reflected in the instantiated material.
As a workaround, RawImageTilingOffset
component needs to implement the following.
IMaterialModifier
interface. GetModifiedMaterial
method as follows:
material.Set***
method to modify the parameters of the instantiated material.GetModifiedMaterial
method as low load as possible.graphic.SetMaterialDirty
method when Scale
or OffsetSpeed
is changed, or in OnValidate
method.
I tried to change property of a material that attached into Image component I tried on runtime and nothing happen so I change the property on editmode, the original material's properties is changed but the softmaskable material property stay the same.