Welcome,
Guest
. Please
login
or
register
.
October 12, 2024, 02:30:39 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How merge different scene's NGUI objects? 2 UIRoot?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How merge different scene's NGUI objects? 2 UIRoot? (Read 1875 times)
leegod
Jr. Member
Thank You
-Given: 5
-Receive: 0
Posts: 90
How merge different scene's NGUI objects? 2 UIRoot?
«
on:
August 26, 2015, 09:36:58 AM »
So I have 2 unity projects, need to merge them.
1. Both have NGUI objects, how can I merge and integrate?
2. And what happen if I have 2 UIRoot in one scene?
Thanks.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: How merge different scene's NGUI objects? 2 UIRoot?
«
Reply #1 on:
August 26, 2015, 12:35:26 PM »
Nothing happens. UIRoot is just a script that makes the UI small. You don't even need it.
What you need to check is your cameras. Two UI roots implies 2 cameras, so one part of the UI will always end up on top of another.
I would suggest rethinking that approach if possible and figuring out a way to not have two roots/cameras. For example if you need a part of the UI to be loaded into an existing one, simply load/parent a prefab via NGUITools.AddChild.
Logged
leegod
Jr. Member
Thank You
-Given: 5
-Receive: 0
Posts: 90
Re: How merge different scene's NGUI objects? 2 UIRoot?
«
Reply #2 on:
August 28, 2015, 08:58:19 AM »
I tested with 2 UIRoots (A, B), various problem occurs...
For example,
1.when I drag A's card ngui object, B's DragDropRoot involved that I don't want,
but forced because if I disable it, dragging object act unnormally.
«
Last Edit: August 28, 2015, 09:20:50 AM by leegod
»
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: How merge different scene's NGUI objects? 2 UIRoot?
«
Reply #3 on:
August 30, 2015, 12:12:00 PM »
Why do you have two UIDragDropRoot objects?
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How merge different scene's NGUI objects? 2 UIRoot?