|
Hey, I'm trying to do a splitscreen deathmatch kind of game, and I'd like each player to have a health bar and some other HUD Gui textures on each camera, but obviously I'd like each one to be specific to that player's camera. Any way I can do that?
(comments are locked)
|
|
Figured it out. The answer was in putting the GUIs on different layers and changing each camera's Culling mask so it only saw its respective layer
(comments are locked)
|
|
You could make one script containing OnGUI which has an 'offset' variable, attach to each camera. Offset for one on the left maybe 0 and the the one on the right Screen.width/2 (or something like that) I haven't tried using an OnGUI script yet, but I'm not so sure if it would work, I would think it would end up putting both GUIs on both cameras, one at each camera's 0 offset and one at each camera's Screen.width/2. I'll have to try it out though....
Jul 14 '11 at 04:30 PM
nowhereman
(comments are locked)
|
