Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: westingtyler on September 08, 2018, 11:42:52 AM

Title: Get Game Object's Material Count?
Post by: westingtyler on September 08, 2018, 11:42:52 AM
I need to set the player game object's material to something different when too close to the camera. But the player might swap characters/models, and some will have many materials on them like skin, hair, etc.

I need to save all materials on a game object into a material array, in order, and I figured a "get material count" would be the best way to establish how many loops to do?
Title: Re: Get Game Object's Material Count?
Post by: jeanfabre on September 11, 2018, 02:15:26 AM
Hi,

 Is that not the job of the LOD system?

Anyhow, I just did the action, it's now on the Ecosystem: getMaterials so you don't need to get them manually, it's just directly stored in an FsmArray.

Let me know if that's ok for you.

 Bye,

 Jean