Author Topic: Dynamic line-drawing between objects  (Read 1961 times)

Whelandrew

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
  • Mostly Harmless
    • View Profile
    • Spellgun Studios
Dynamic line-drawing between objects
« on: June 16, 2014, 10:52:25 AM »
In my UI, there is an indicator circle that directs the users attention to a new feature in the scene. I am attempting to draw a line from the textbox of instructions to the circle highlighting the new feature. I have been trying to do this by drawing a 1x1 pixel line from one point to the other. I need the line to scale and rotate. Manually, I can make this work fine, but in code I cannot wrap my head around the process to get this working correctly. I could use any kind of direction, thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic line-drawing between objects
« Reply #1 on: June 17, 2014, 01:51:18 PM »
I'm not sure what drawing a line has to do with NGUI? Either use Vectrocity plugin, or create a small widget with desired thin & narrow dimensions.