Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: bfd on September 16, 2014, 04:18:44 AM

Title: Set properties for LineRenderer component
Post by: bfd 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
Title: Re: Set properties for LineRenderer component
Post by: bfd 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.
Title: Re: Set properties for LineRenderer component
Post by: Twood on November 17, 2014, 06:40:39 PM
Did you try the Draw Line action

http://hutonggames.com/playmakerforum/index.php?topic=3943.0
Title: Re: Set properties for LineRenderer component
Post by: bfd 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!
Title: Re: Set properties for LineRenderer component
Post by: Tominator_66 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.