2D Toolkit Forum
2D Toolkit => Support => Topic started by: TheDreamMaster on November 30, 2013, 08:20:56 pm
-
Hi,
I am new to 2D toolkit, so bear with me :)
I have 3 cameras:
Main: perspective, game objects
Minimap: ortho wide view of playing field
UI: tk2dUICamera
When I place UI elements in my hierarchy, they show up properly, but they only react if I have the tk2dUI script attached to my main camera, they seem to ignore the UI camera (which has a tk2DUI script attached).
Is there a way to fix it?
-
You will need to use unity layers to make sure the Main Camera can't see the UI, and only the UI camera can only see the UI. The UICamera script uses these layers to determine what can be clicked through which camera.