A quick post to share with you this excellent article about optimizing your Unity game. Some of the advices are simple and obvious, others are more advanced. I confess I started to read the article and thought: "nothing useful, more of the same", but a few lines later I had changed my mind.
I had pending this since a month ago, so Im forcing myself to post it today. The goal is to provide a fully functional isometric like system that you can use with few or none modifications in your own game. So, lets get started. Start Unity3d and in your scene, add an empty GameObject, we will call it target . Create a camera object and drag it to target to make it child. The result looks like this: Now select Camera and set the values to this: For a true isometric like feeling, ortho projection is essential. You could use perspective, but it is not the same. Play with Size to suit your needs (we will be using this later, when implementing zoom). Now, lets create an script named CameraController, or whatever, and drag it to target GameObject. Lets implement scrolling, the easier part: go to Update() and add the following code: if (Input.GetKeyDown(KeyCode.W)) { dir = UP; } else if (Input.GetKeyDown(KeyCode.S)) { dir = DOWN; } e
Comments
Post a Comment