playMaker

Author Topic: [SOLVED] how to enable and disable the mesh renderer  (Read 4033 times)

Splankton

  • Sr. Member
  • ****
  • Posts: 268
[SOLVED] how to enable and disable the mesh renderer
« on: September 07, 2013, 12:17:03 PM »
Hi, let's say I have a coin prefab,  and I place a few of them into the scene.  And I use a trigger on the prefab so I can pick it up, which actions should I use to disable the renderer on pickup, wait a set amount of time then re-enable the renderer?
« Last Edit: September 08, 2013, 11:59:05 AM by Splankton »

uberwolfe

  • Junior Playmaker
  • **
  • Posts: 59
Re: how to enable and disable the mesh renderer
« Reply #1 on: September 07, 2013, 12:27:58 PM »
Hi, that sounds like it would work well if the coins always respawn in the same place.

You can enable/disable the mesh renderer on an object using the Set Property action. The mesh renderer property is located under renderer/enable.

Good luck :)


Splankton

  • Sr. Member
  • ****
  • Posts: 268
Re: how to enable and disable the mesh renderer
« Reply #2 on: September 07, 2013, 12:39:51 PM »
Hi, that sounds like it would work well if the coins always respawn in the same place.

You can enable/disable the mesh renderer on an object using the Set Property action. The mesh renderer property is located under renderer/enable.

Good luck :)

Thanks for your help!  Yes the coins would have to be spawned in the same position.