Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[solved] Shadow color in runtime

A topic by miksol created May 16, 2019 Views: 324 Replies: 3
Viewing posts 1 to 4

Hello! How in runtime is easier to change the color of the Shadow or Outline?

Developer

Shadows and Outlines are handled by shaders/materials, and you can change materials mid-string with the <m=name> tag, after a material has been defined in the TextData inspector (the T icon in the top-right of every STM window). So you could use this to swap between multiple shaders!

To change a material after its been "drawn", you'll have to edit the materials/sharedMaterials array of STM's mesh renderer (supertextmesh.mr) component. The materials STM uses to draw text is a copy of the reference materials provided, so you'll need to change these materials directly through the mesh renderer.


I hope this helps!

Ok thank you!, but now MeshRenderer is .r not .mr

Developer

Oh, oops! Yes it is... sorry about that!