playMaker

Author Topic: Set properties for LineRenderer component  (Read 3247 times)

bfd

  • Playmaker Newbie
  • *
  • Posts: 21
Set properties for LineRenderer component
« on: September 16, 2014, 04:18:44 AM »
I'd like to be able to control a LineRenderer component from within an FSM.

http://docs.unity3d.com/ScriptReference/LineRenderer.html

Unless I'm mistaken the 'Set Property' actions don't really work on this component because simple things like 'localposition' have multiple values (for each vertex)

I'm only using lines with 2 vertexes, but I'd say it would be useful to include all 4 functions for this component: SetColors, SetPosition, SetVertexCount, SetWidth

bfd

  • Playmaker Newbie
  • *
  • Posts: 21
Re: Set properties for LineRenderer component
« Reply #1 on: November 17, 2014, 04:22:30 PM »
*bump*

I really need this to achieve part of the project I'm working on. I'm trying to co-ordinate with a friend who knows cs, but if anyone can help me out in the meantime it would really be great.

I've double checked the set property action only allows access to the top half of the linerenderer properties - not the positions and parameters which is what I really need to access.

Twood

  • Junior Playmaker
  • **
  • Posts: 76
Re: Set properties for LineRenderer component
« Reply #2 on: November 17, 2014, 06:40:39 PM »

bfd

  • Playmaker Newbie
  • *
  • Posts: 21
Re: Set properties for LineRenderer component
« Reply #3 on: November 18, 2014, 02:29:17 AM »
Well now I feel silly! No idea why that didn't show up in my search, but it's perfect - thanks so much!

Tominator_66

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Set properties for LineRenderer component
« Reply #4 on: April 08, 2015, 05:26:30 AM »
This is the exact reason I came to the forum for the first time just now! Very happy.