|
I want to put an NPC (Non playable character) In the game. Basically:
Can anyone help me :-P
(comments are locked)
|
|
For clicking on an object (that has a collider), look at OnMouseDown(). For the 'chat' interface, look into Unity's built-in GUI system (that's not the only way it can be done, but it's probably the most straightforward way). Beyond that, I think you'll have better luck if you ask more specific questions (either here or on the forums). Basically i just want to click on the object and have a GUI pop up, but when i do it keeps saying to call the "OnGUI" function. But when i put that in i cant click on the object.
Dec 07 '10 at 08:12 PM
Nazukan 2
You'll need to post some code and tell us exactly what errors you're getting. You can edit your post to include that information. Or, if you need more general and/or extensive help, you might try posting to the forums instead.
Dec 07 '10 at 09:33 PM
Jesse Anders
All GUI must be called in the function OnGUI() make a boolean var and only run the GUI code if its true, etc.
Jan 23 at 10:02 PM
landon91235
Last comment: Dec 07, 2010. On a side note, wow, a question beginning with "How do I". It's a miracle.
Jan 23 at 10:08 PM
Loius
I'm on an ipad seems the hover function doesn't work very well, bring it up with UT not me
Jan 24 at 01:54 AM
landon91235
(comments are locked)
|
|
What you could do, is this. This is in C# since I don't know how to use JavaScript but it shouldn't be too hard to convert to JavaScript.
(comments are locked)
|
