Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

[solved] MultiMaterial Question

A topic by Arin77 created Aug 30, 2017 Views: 267 Replies: 1
Viewing posts 1 to 2
(1 edit)

Hi, 

I've been looking into the documentation and can't find anything on multi materials. I would like to use the UI_Masked and UIDefault shader (possibly more combinations in the future) and I can't seem to find a way to make it work.

What I've tried:

- use the text markup with multi material enabled, which means 1 material in the editor slot and 1 material through the text markup like so:  
"<m=UIDefault>0/2"

- add materials to the mesh


Thanks in advance! 

Cheers :) 

Developer (1 edit)

Hey!

As of STM v1.5, multi-material UI is only supported on Unity 2017.1+, as it would cause some nasty crashes in older versions, so make sure you're using that, first. Otherwise, you'll have to use the non-UI version of STM to use multiple materials.

 To switch between multiple materials, go into TextData (click the T in the top-right of any STM inspector) and find the "Materials" drop-down. Define a new material there, the name you use here will be the string you use to call it. Then, in your mesh you can use the tag <m=materialname> to switch, and </m> to return to the default material!