![]() You’ll find an example of it in action in the Loft3D demo scene (use L and M to rotate the camera). It comes with options to also rotate input to match the camera’s direction, determine rotation space and speed, and a dedicated aim option for weapons. ![]() While the TopDown Engine focuses on top down action games, which traditionally feature a non rotating camera, the engine comes with a dedicated ability, CharacterRotateCamera, that will let you rotate the camera on the vertical axis (z in 2D, y in 3D) around your character. Don’t hesitate to check its documentation for more info on how to take full advantage of it. The TopDown Engine relies on Unity’s excellent PostProcessing stack for post processing effects. You can also see it in use in the Koala Dungeon demo scene. Check out its documentation for more details on how to use it. Pixel Perfectįor 2D scenes where you want pixel perfect behaviour from the camera, the engine relies on Unity’s native Pixel Perfect Camera component to provide crisp visuals. This is for purely cosmetics purposes, and if you don’t like it, you can (and should) remove it by selecting your virtual camera and settings its Noise dropdown to “None”. Note that most Cinemachine Virtual Cameras in the demos use some form of Noise on them, which makes the camera move constantly, simulating a handheld camera. a CinemachineCameraController, a minimal class that allows you to turn following on or off.an MMCinemachineCameraShaker, used to catch camera shake events and move the virtual camera around in shake patterns.the use of a Cinemachine Confiner, automatically set to the LevelManager’s bounds on start, so you don’t have to worry about it.The only specifics to the TopDownEngine are these components, added to the virtual camera : This documentation doesn’t cover how to use Cinemachine, as its own documentation does that perfectly well. It’s a beautiful and powerful tool, that should cover all your needs when it comes to camera movement and behaviour. The engine relies on Cinemachine to handle cameras base behaviour. The MainCamera is a regular Unity camera, and in most demos the engine uses Unity’s amazing Cinemachine to drive it. It contains one or more canvases, and on them you’ll find buttons, screens, etc. The UI Camera’s Culling Mask is set on UI, which means it’ll only render UI tagged stuff, and is setup to be superimposed over the main camera’s render. ![]() Regular and UI Cameras The TopDown Engine's two cameras and camera rigīy default, in most demo scenes of the TopDown Engine, you’ll notice a camera rig : a transform holding a regular camera (2D, 3D, following the player or not, etc) and a UI Camera. This page covers the main scripts and how to use them. There’s nothing mandatory here and you can do whatever you want. Note that you can use any Camera script with the asset, or implement your own, or build on top of the provided scripts. ![]() The TopDown Engine includes a few Camera specific scripts. That's not a real solution since I need to use a PixelPerfect component (with the ability to Zoom).Like for any other Unity project, you’ll need a Camera (or more) in your level to see the action. I found out that disabling the "Pixel Perfect Camera (Experimental)" component on the Camera solved the problem. Even if it's the only vcam enabled, it's not zooming. I mean, everything else works, the rotation, etc, everything but the zoom. To achieve that, I have added a 3rd "CM vcamZOOM".īut nope, it's not working at all. Now, I need to make a zoom on the player. (note : I'm aware there's another PixelPerfect component in the "2D pixel perfect" package, but it's only compatible with LWRP projects if I'm right.)ĬM vcam1 and CM vcam2 are used to make transitions between Areas. I feel that the right PixelPerfect component because it seems that it's the only one working for my project ahah. ![]() So I use the Camera component named "Pixel Perfect Camera (Experimental)". The CM PixelPerfect component doesn't work in my 2D Tilebased game. There are many PixelPerfect component that exists and it confuses me. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |