playMaker

Author Topic: 2D and NGUI positioning [SOLVED]  (Read 1884 times)

MrMitch

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • Rage Quit Games - Coming Soon
2D and NGUI positioning [SOLVED]
« on: January 31, 2014, 01:33:37 PM »
I'm having some issues with 2D and NGUI

So what i'm trying to do is have an NGUI label appear at a point of collision, i have no issues making it appear but its making it appear in the correct place that i'm having trouble with.

I've tried many differeny ways but from what i can work out i think both the 2D and NGUI look at the screen res differently and i can't figure out a way to make them work together.

Has anyone dealt with this before or does anyone have any suggestions?
« Last Edit: February 04, 2014, 04:56:08 AM by MrMitch »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12344
  • Official Playmaker Support
    • View Profile
Re: 2D and NGUI positioning
« Reply #1 on: February 03, 2014, 03:54:56 AM »
Hi,

 HUD plugin is likely the right addition you need to have with NGUI to do that.

http://u3d.as/content/tasharen-entertainment/ngui-hud-text/37P

bye,

 Jean

MrMitch

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • Rage Quit Games - Coming Soon
Re: 2D and NGUI positioning
« Reply #2 on: February 03, 2014, 01:49:23 PM »
Hi,

So i bought HUDText but can't seem to find a way to push info to it, i tried Set Property but no luck.

Any suggestions?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12344
  • Official Playmaker Support
    • View Profile
Re: 2D and NGUI positioning
« Reply #3 on: February 04, 2014, 03:42:58 AM »
Hi,

 Try this action.

If that works, I'll add it on the wiki.

bye,

 Jean

MrMitch

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • Rage Quit Games - Coming Soon
Re: 2D and NGUI positioning
« Reply #4 on: February 04, 2014, 04:01:01 AM »
Hi Jean

I got this error

Assets/PlayMaker/Actions/NguiHudTextAddEntry.cs(67,37): error CS0103: The name `PlayMakerUtils' does not exist in the current context

Also when i restarted unity it bugged out playmaker and NGUI and gave me the "Failed to Load Layout" message

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12344
  • Official Playmaker Support
    • View Profile
Re: 2D and NGUI positioning
« Reply #5 on: February 04, 2014, 04:04:23 AM »
Hi,

 D'oh, forget to mention that requires arrayMaker, or at least PlayMaker Utils.

http://hutonggames.com/playmakerforum/index.php?topic=3438.0

Bye,

 Jean

MrMitch

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • Rage Quit Games - Coming Soon
Re: 2D and NGUI positioning
« Reply #6 on: February 04, 2014, 04:55:28 AM »
It works :)

I'm just using the Playmaker Utils and it works perfect.

Thanks Jean :)