Author Topic: How to mix 2d and 3d UI in one scene  (Read 2959 times)

arkon3

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 71
    • View Profile
How to mix 2d and 3d UI in one scene
« on: December 17, 2013, 08:47:47 AM »
Hi, I have most of my UI as a 2D UI, but I have a 3d object I wish to use as a button in the scene. I can't seem to get any events to trigger when touching the 3d button, all the 2d ones work fine. All the 2d Stuff is rendered by the 2d UI camera, but the 3d button is rendered by my main 3d camera.

Is it as simple as adding the UICamera script to my main scene 3d camera too?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to mix 2d and 3d UI in one scene
« Reply #1 on: December 17, 2013, 09:39:06 AM »
Yes. UICamera is what sends out events and each camera that draws interactable objects needs to have one.