Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Yanifska on November 05, 2013, 06:01:51 PM

Title: Parenting Ngui Sprite[SOLVED]
Post by: Yanifska on November 05, 2013, 06:01:51 PM
Hi,
I am trying to parent a Ngui sprite at runtime but my sprite disapear when I do.
I need to use the Correct button from the widget panel I think, but I cant find which property I need to set to get the same effect.

Any help apreciated
thx
Yaniv
Title: Re: Parenting Ngui Sprite
Post by: jeanfabre on November 06, 2013, 12:52:19 AM
Hi,

 you need to use a specific action for this: NguiAddChild, have you tried with it?

bye,

 Jean
Title: Re: Parenting Ngui Sprite
Post by: Yanifska on November 06, 2013, 03:20:16 PM
Thanks it works.
It seems I can't parent an NGUI Object to a non NGUI, like an empty GameObject.
Do you know any workaround?
Title: Re: Parenting Ngui Sprite
Post by: jeanfabre on November 07, 2013, 12:22:56 AM
Hi,

 Ngui widgets must be within a nGui UIRoot, you can't use ngui outside a hierarchy not set up for nGUI, within it you can have empty objects, that's ok.

bye,

 Jean