playMaker

Author Topic: Material instance / ArrayMaker??  (Read 2196 times)

mekoid

  • Playmaker Newbie
  • *
  • Posts: 36
Material instance / ArrayMaker??
« on: March 17, 2015, 11:04:50 AM »
I have object A1 that has material A applied to it. And Material A is obtained from an Array based on a var INT (with ArrayMaker).

There are other objects A2,A3... that share Material A referencing from the same Array lookup table.

The problem is when an Event happens, it triggers Material A to animate. And it also changes other objects that have Material A, that I dont want.

Is there a way to avoid this problem? Thanks very much in advance.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Material instance / ArrayMaker??
« Reply #1 on: March 18, 2015, 02:57:33 AM »
Hi,

 This is the way Unity works, materials are shared. I don't think it's related to PlayMaker or ArrayMaker right?

 Bye,

 Jean

mekoid

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Material instance / ArrayMaker??
« Reply #2 on: March 18, 2015, 09:46:27 AM »
Yeah, I kinda knew that, maybe I should post it on Unity forum?
But, you know, since I have been using PM solely, it'd be easier to get a PM solution for me. So I was hoping I could get one here first.

If you know any PM solution to get around to that, I'd be greatly appreciated. Thanks for your time.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Material instance / ArrayMaker??
« Reply #3 on: March 30, 2015, 08:08:08 AM »
Hi,

 PlayMaker doesn't have any solution for this, this will have to be done with either several materials or custom shaders.

 Bye,

 Jean