Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cOOldOOd

macrumors newbie
Original poster
Jul 23, 2010
5
0
I have built a game outside of Xcode, Im able to open the menu bar .nib with Xcode and add more menu items and such. But I'm wondering if it is possible to send a key press at the app after pressing a menu item?
 
Last edited:
It sounds to me like you haven't divided responsibilities in your app properly. One UI interaction shouldn't be simulating another UI interaction - both UI interactions should trigger the same controller code.
 
Thanks for the help, it leads me to believe that I could only have the menu bar interact with the game if I built it all in xcode. The chess app has game - new game, i'd like to do that with my unity game.
 
Ah - most games don't use the menubar so Unity's APIs don't seem to allow for using it.

I would look into either making a menubar in your game using the GUI library, or I would see if Unity games allow external triggers or scripting hooks or something like that.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.