can create new material at runtime(like unity)?

I am trying create new material by HTTP data, but it only run at editor not runtime.

below is editor can use code:

can create new material at runtime(like unity)?