Playmaker Forum

PlayMaker Help & Tips => Android Help => Topic started by: MrMitch on January 31, 2014, 01:33:37 PM

Title: 2D and NGUI positioning [SOLVED]
Post by: MrMitch 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?
Title: Re: 2D and NGUI positioning
Post by: jeanfabre 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
Title: Re: 2D and NGUI positioning
Post by: MrMitch 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?
Title: Re: 2D and NGUI positioning
Post by: jeanfabre on February 04, 2014, 03:42:58 AM
Hi,

 Try this action.

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

bye,

 Jean
Title: Re: 2D and NGUI positioning
Post by: MrMitch 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
Title: Re: 2D and NGUI positioning
Post by: jeanfabre 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
Title: Re: 2D and NGUI positioning
Post by: MrMitch on February 04, 2014, 04:55:28 AM
It works :)

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

Thanks Jean :)