playMaker

Author Topic: Draw Line 1.1 [last update: 18.05.2015]  (Read 10786 times)

krmko

  • Sr. Member
  • ****
  • Posts: 422
    • View Profile
    • Fat Pug Studio
Re: Draw Line 1.1 [last update: 18.05.2015]
« Reply #30 on: May 30, 2017, 04:11:45 AM »
Hmm, i tried updating the action, but i get this error:

Assets/PlayMaker Custom Actions/Effects/DrawLine.cs(32,35): error CS0118: `UnityEngine.LineRenderer.textureMode' is a `Unresolved' but a `type' was expected

This is all i added, nothing much really:

31   [Tooltip( "Texture Mode" )]
32   public UnityEngine.LineRenderer.textureMode textureMode;

91   textureMode = UnityEngine.LineRenderer.textureMode.Stretch;
126 _lineRenderer.textureMode = textureMode;
143 _lineRenderer.textureMode = textureMode;

Any ideas, haven't seen this mistake.

tcmeric

  • Sr. Member
  • ****
  • Posts: 480
    • View Profile
Re: Draw Line 1.1 [last update: 18.05.2015]
« Reply #31 on: May 30, 2017, 05:14:11 AM »
Double reply. I created a new action to set the line renderer texture mode. As well my github account has one to set a gradient for the line renderer.

https://github.com/dumbgamedev/general-playmaker/tree/master/lineRenderer

cel

  • Junior Playmaker
  • **
  • Posts: 58
    • View Profile
Re: Draw Line 1.1 [last update: 18.05.2015]
« Reply #32 on: July 21, 2017, 06:33:53 AM »
I am having trouble with this... I have an object that rotates with the mouse, and I want the line to rotate on the y axis with the object, but can't get it to work, tried all the settings with space mode and align to is space mode self and still nothing... could you guys cook up an example, please?

thanks in advance

arkdzo

  • Playmaker Newbie
  • *
  • Posts: 16
    • View Profile
Re: Draw Line 1.1 [last update: 18.05.2015]
« Reply #33 on: August 04, 2017, 02:55:23 PM »
Unity 2017.1.0p2.. Start, End Colors not working.. Always brown color  :-[