playMaker

Author Topic: Set Trail Renderer Material [SOLVED]  (Read 884 times)

LogLady

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Set Trail Renderer Material [SOLVED]
« on: August 13, 2014, 01:37:40 PM »
Hi!

Is there any action or a way to set the trail renderer material using Playmaker?

Thanks!
« Last Edit: August 14, 2014, 12:09:43 PM by Lane »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2484
  • Yup.
    • View Profile
    • Cleverous
Re: Set Trail Renderer Material
« Reply #1 on: August 14, 2014, 09:54:27 AM »
No specific action, but I think you can do it with Set Property.

LogLady

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: Set Trail Renderer Material
« Reply #2 on: August 14, 2014, 10:42:54 AM »
I already tried the Set Property but I want to do it on an instantiated object that I save in a gameObject var. I couldn't use the Set Property on a var.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2484
  • Yup.
    • View Profile
    • Cleverous
Re: Set Trail Renderer Material
« Reply #3 on: August 14, 2014, 10:44:01 AM »
Use Get Component for instantiations. It's also covered in that video.

LogLady

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: Set Trail Renderer Material
« Reply #4 on: August 14, 2014, 11:54:33 AM »
It worked! I had to dig thru the object type.

Thanks!  :)

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2484
  • Yup.
    • View Profile
    • Cleverous
Re: Set Trail Renderer Material
« Reply #5 on: August 14, 2014, 12:09:30 PM »
Great! =)