playMaker

Author Topic: Draw Line sort order  (Read 1504 times)

szomaza

  • Sr. Member
  • ****
  • Posts: 253
Draw Line sort order
« on: October 26, 2017, 01:56:10 PM »
Hi All,

I have been using the Draw Line action to, ... well draw some lines. :-)
Now I put some uGUI images "behind" it and I am unable to make the line appear anymore, as the ugui images appear before it.

I have moved them on Z axis behind, also set their draw order to -50, but still the lines only appear when I turn the uGUI images off.
(Draw Curve and Draw Spline behaves the same.)

Is this how it should work?
Could the Draw Line action have a Sort Order setting?

Is there any other action that could help me draw some simple lines that appear before the uGUI?
Maybe some mesh plane based thing with which you could position the 4 vertexes of a mesh plane? (to form it at runtime into a thin rectangle: a line)

Thanks in advance for any help,
szomaza

Ofonna

  • Full Member
  • ***
  • Posts: 230
Re: Draw Line sort order
« Reply #1 on: October 27, 2017, 04:58:43 AM »
i think your canvas setting might be the problem, i believe you cant draw anything infront of "screen space overlay" so you should probably look at that.

szomaza

  • Sr. Member
  • ****
  • Posts: 253
Re: Draw Line sort order
« Reply #2 on: October 28, 2017, 03:35:03 PM »
Oh, yeah, those images are in the main UI canvas which is screen space.
Thank you Carmichael, for noticing/mentioning this problem.

I'll move them to a world space one and see how that works out.