<material> tag not working

I want to switch different fonts and material presets at runtime and I followed the documentation to set it up.
![7877851–1001809–GA[C(85)31R@AN{W{T1B_B.png|734x577

It is ok when there is only tag.


But when I added the tag, the rich text was broken.
![7877851–1001815–0]YWE3}RY8G0FG7$~HSBVZR.jpg|1815x564](upload://tscLun6JqY26EzdqNpQ17v1EjSy.jpeg)

The Tmpsetting path is also right. Is there anything I got wrong?
![7877851–1001818–3(ZGIZ49(CMR1~6PW]Q5%`X.png|1101x564](upload://bbSB1nNFKdEgI2uJ67pBkllNXt0.png)

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.
![7878238–1001893–C%[$D})BV21(0SCI(%JBQ6.png|1108x116

Register the event And then load the material from assetbundle.

.![7878238–1001899–)U1MY91]%9P]6L4L$B7(LNO.png|708x255](upload://iYlaZ1NVBsTyindjje8ntaKrUy1.png)