<material> tag not working

I want to switch different fonts and material presets at runtime and I followed the documentation to set it up.

It is ok when there is only tag.
But when I added the tag, the rich text was broken.

The Tmpsetting path is also right. Is there anything I got wrong?

Never mind. I missed a slash symbol '/' at the end of path.:eyes:

Well, things above are worked for Resource.Load. Howerver, if I use assetbundle, the material cannot be loaded.So I modified the TMP_Text.cs and add an event called OnMaterialAssetRequest , which is similar to OnSpriteAssetRequest.

Invoke this event before Resource.Load.

Register the event And then load the material from assetbundle.