Can someone make a custom action that will allow me to "touch object event" from multiple cameras?
I have a game with a second camera as a sort of inventory/toolbar at the bottom.
Problem is i have to keep switching "main camera" with another button to enable touch event in second camera. then switch back. Is there a way to make a custom action that will allow touch event in whichever camera bounds is touched.
My main camera (1st person, is the whole screen, second camera is at bottom center (top .8, left .2, width .6, height .2)
(i tried using a grid autolayout with buttons, playmaker gui Prefab, and proxy component, but could not get "send event" to work, after days of research,(doing exactly like tutorial, i decided to do it this way). but worked perfectly with sprite(or 3d) touch obj, then FSM with touch object event to a "send event" state action to FSM i want.)
I can make it work, but just thought I'd post to ask if a custom action could pick whichever obj from whichever camera. Obviously depth is set diff on each camera so they overlap, and can both be seen. If the action could check for obj in top camera first, and if no obj, then check if raycast hit second camera obj, or something like that.
Sorry for the long explanation and request, not good at coding, but trying, and loving anything game making. Thanks in advance.
seen several people with same prob of multiple cameras and "mouse pick" and "touch object event" this solution could help. (if in my hours of research, i missed a similar solution, please forgive me, but i looked everywhere)