playMaker

Author Topic: CAN I SET THE NUMBER OF MATERIALS ON A GAME OBJECT? (mesh renderer)  (Read 8496 times)

acriticalstrike

  • Playmaker Newbie
  • *
  • Posts: 24
Re: CAN I SET THE NUMBER OF MATERIALS ON A GAME OBJECT? (mesh renderer)
« Reply #15 on: July 18, 2014, 04:31:53 PM »
well folks I've been talking with a programmer who is much more skilled and experienced than I and knows a heck of a lot about unity and he says that using multiple materials on a game object is bad for performance and will increase the draw calls so what I started here may be irrelevant and I may modify my meshes so that they use only one material and I use a shader that might behave in such a way that I achieve the desired visual effects I would like to see without using those extra materials

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: CAN I SET THE NUMBER OF MATERIALS ON A GAME OBJECT? (mesh renderer)
« Reply #16 on: July 19, 2014, 01:00:35 AM »
Hi

For this, you need to inject in your MeshRenderer component the list of materials or sharedMaterials.

 Are you ok with c# and action building? I checked the unity doc and I think it's doable.

 Bye,

 Jean