- Home /
How to make a half 2d- half 3d main menu??
guys, i want to make a menu with a background 2d texture and there would be a logo of my game which should revolve(it is 3d) when i hover the mouse on it. how to make this?? More over can i make a high resolution main menu???
Pick one thing and look it up. Revolving objects, checking for mouse hover and making backgrounds are all here.
Answer by Seth-Bergman · Mar 27, 2013 at 08:09 AM
The resolution can be as high as the resolution of the screen being used..
The easiest way to create your background texture is probably with a plane, just create a plane and add the texture, and line it up with the camera.
Now as for the 3D object, just drop it in place in front of the plane, then add a simple script such as:
function Update(){
var hit : RaycastHit;
if(Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition),hit)){
if(hit.name == "Name of the object")
hit.transform.Rotate(Vector3.up * Time.deltaTime);
}
}
(for this example, the object needs a collider to work)
it CAN be.. absolutely, this method will not di$$anonymous$$ish the possibilities for quality, fret not!
Your answer
Follow this Question
Related Questions
2D eyes on 3D character? 2 Answers
Texture rendering 1 Answer
What does a quad look like? 1 Answer
How can I animate the surface of a 3D object? 0 Answers
How to make a drag and drop menu in 2d for a 3d game (sims 4 furniture like) 0 Answers