Search Unity

Project Templates (introduced earlier this year in this blog post) change the way you launch a new project in Unity.  The aim of Unity Project Templates is to improve the majority of users “out of the box” Unity experience. They provide preselected settings based on common best practices for different project types such as mobile, high-end PC, 3D, 2D, VR, etc. The templates also seamlessly introduce people to new (and old) Unity features such as Scriptable Render Pipelines, Shadergraph, and the Post-Processing Stack.

Unity 2018.1 will ship with six Templates to choose from when you create a new project. The first two will feel familiar to veteran Unity users:

  • 2D
  • 3D

However, you can also choose from the more specialized options of:

  • 3D with Extras
  • Lightweight Render Pipeline
  • Lightweight Virtual Reality Render Pipeline
  • High Definition Render Pipeline

These four distinct Templates are in “Preview,” which means they introduce brand new features and workflows. As such, some of these features may be subject to change (API, UX, scope, etc.) and aren’t covered by traditional Unity support. You can report issues with Preview features on our forum page.

Because the 2D and 3D Templates contain familiar features and workflows, this blog post will focus on the new Preview Templates as they are a great place to explore many of the new graphics features introduced in 2018.1. Each Template includes the same example scene that you can use as a resource for learning how to make your 3D scenes visually excel, regardless of the hardware limitations of the platform you are targeting.

All Templates have a Readme in the project that contains a short description of their intended purpose as well as links to documentation for the new features they introduce.

Template Basics

So how can you get the most out of these projects? Each new Project Template shares some similar features.

Because all Templates share the same example content, it is easy to compare and contrast the visual differences between using one Template over another.

This default content is intended to showcase how to set up lighting, materials, and post-processing for the best results on a target platform. The content itself provides a good reference for how to lightmap your meshes (for meshes marked as Lightmap Static), place light probes, and author textures for use with the Standard PBR material.

If you don’t want the example content in the scene you can easily delete it by deleting the ExampleAssets Object in the Hierarchy and ExampleAssets folder in the Project’s asset directory.

This will remove all the example content without breaking any Post-Processing or lighting settings. From here you can add your own meshes to this scene and have a well-lit asset without any additional work.

Here’s an example of an .fbx file imported and placed into a 3D With Extras Template in 18.1 with comparison to a 3D project in 2017.3:

Some notable improvements are outlined here:

  1. Colors are more balanced throughout the scene; no color is too dark or too bright and we aren’t losing any details. This is because the color space is now linear by default and the scene contains post-processing that utilizes the filmatic ACES tonemapper.
  2. Our anti-aliasing has improved, making our scene much smoother than before. anti-aliasing (now with new options) is now controlled through our Post-Processing volume.
  3. Our shadows line up; we don’t have large gaps where two pieces of geo meet. The bias settings of our directional light have been tuned to balance between shadow contact quality while minimizing artifacting and banding.
  4. The scene has ambient occlusion to make everything feel more grounded. This is, again, due to the addition of post-processing in our project.

There are some other perks found in all the Templates.

By default you will now find a script on the Camera that allows for simple WASD navigation through the scene and the speed of your movement is tunable via the camera inspector. This allows you to quickly navigate while in Play to inspect your geometry without having to write any C# code. (Note: the VR Template has a unique script for VR movement.)

There are also a number of presets, most notably those that can help set import settings for textures and audio.

Let’s look at texture presets as an example. By default, the Template will assume a texture is an albedo, but if it is a normal map or for another purpose simply hit the preset button and select the appropriate preset option from the list.

Different Templates have separate import settings that have been tuned for that Template’s purpose.

Now that we’ve covered the basics let’s look at the purpose each Template serves.

3D with Extras Template

This Project Template is a great starting point for a brand new user looking to experiment and learn more about using Unity. It uses Unity’s built-in render pipeline so you can easily find answers to questions and tutorials online. It is also great for artists who want to easily see what their content looks like in a balanced, outdoor lighting scenario.

Lightweight Render Pipeline Template

This Template is setup to use the Lightweight Render Pipeline which is an easily accessible example of the new Scriptable Render Pipeline feature shipping with Unity 2018.1. The Lightweight Render Pipeline is optimized towards delivering high performance across lower-end hardware and resource intensive media such as VR.

As stated above, this Template was created with performance in mind. Not only are settings adjusted to use the Lightweight Render Pipeline, the project, lighting, and post-processing settings have been tuned for more performant results and to only include features that work with the Lightweight Render Pipeline. This makes it a great starting point for users targeting a broad range of mobile platforms, low-end to mid-tier hardware, or for developers making games that have limited realtime lighting needs.

When using the Lightweight Render Pipeline a number of rendering settings have been moved to a special asset in your project. This Template comes with multiple of these setting assets allowing you to further customize your project based on what type of hardware you are targeting.

By default the project uses the LWRP-High asset to showcase the best visual results.

Try out the other ones by changing the Scriptable Render Pipeline asset in the Graphics Settings (Project Settings -> Graphics).

Some additional characteristics you’ll notice while working with this template is a new set of Standard Shaders (all included assets use the new Standard Physically Based shader) and that only one real-time shadow casting light is supported (in this case, the spotlight in our construction scene).

This Template also includes the new Shader Graph tool. You’ll be able to create shader graphs via Create -> Shader and selecting one of the Graph options (PBR Graph, SubGraph, Unlit Graph).

Lightweight Virtual Reality Render Pipeline Template

The Lightweight VR Template is very similar to the normal Lightweight Template, except it is more optimized (by default it only uses one pixel light, hdr is off, and only two shadow cascades) and some settings are tuned specifically for Virtual Reality (Post-Processing, anti-aliasing, texture anisotropic filtering, etc).

There is also a VR Camera Rig setup designed to work with multiple VR headsets. It also includes options to use Stationary or Room Scale (when applicable) and set camera height for stationary experiences.

By default it assumes a seated, stationary experience.

This means you can just put on your headset, hit play, and enter the experience right away.

There are also containers setup for Left and Right Hand Controllers using the Tracked Pose Driver. Just add some geometry and you’ll be able to see your virtual hands without any additional work.

High-Definition Render Pipeline Template

Our last new Template is the High-Definition Render Pipeline Template. The High-Definition Render Pipeline prioritizes stunning, high-fidelity visuals and is intended for high-end hardware: GPU-compute-capable consoles, and PC hardware (DX11 and above, Xbox One, PS4, Metal (macOS), and Vulkan (PC)).

Because this Template was created to deliver great visuals the render pipeline asset, project, lighting, and post-processing settings have been tuned with a high-end experience in mind. This makes it a great starting point for developers who want to make games with realistic, believable graphics that target high-end platforms and utilize the latest in rendering advancements.

The High-Definition Scriptable Render pipeline introduces a lot of new features, some of which you’ll see right away when exploring this Template. These include a new light editor with several additional light properties, new materials with new options (including several advanced material types such as subsurface and clear coat), volume-based scene settings (these control aspects of your projects such as your sky, fog, and shadow cascade settings), and a subsurface profile asset that includes examples for skin and foliage.

Some other new features accessible in this template include a large suite of new debug options, Layered Materials, Decals, and real-time Area Lights.

Project Templates moving forward!

As you can see there is a lot to explore and learn about with Templates! We hope they will help you get the best visuals out of your new projects.

You can expect many updates for Templates in the future. In addition to more new project Templates (some more for XR are close on the horizon), we are also working towards allowing users to create and share their own Templates – a feature we are all super excited about!

Today these Templates are just the beginning, but we see them as a great starting point. With Templates there are fewer barriers to learning which project settings are best for making your scenes look good, which means more time for the fun parts: creating worlds and experiences for your users!

Dejar una respuesta

Puede utilizar estas etiquetas y atributos HTML: <a href=""> <b> <code> <pre>

  1. hello unity :)
    a simple question :
    Can we ” convert ” templates to each other ?!
    for example from ” LW to HD ” or vice versa !

    it’s very important subject for us … thanks

  2. So the Project Templates are not available do download yet?

  3. Misleading Title: This has nothing to do with getting “the most” from these templates. It’s merely a vague introduction to their new and untested content, new and untested setups and the intention.

    1. Perhaps: “How to choose Unity project templates to get going quickly and slickly”

    2. The title is definitely misleading :) it’s not even out yet! It should be, “ how ‘future you’ can get the most out of stuff!”
      I do really like that these blog posts cover new feature though, it keeps you in the loop a little

  4. I tried out the Lightweight Virtual Reality Render Pipeline Template. I have a Windows Mixed Reality headset (Dell). When I tried it using Steam the template project worked fine but if I switched the build to UWP so I could use the Windows Mixed Reality SDK directly the image come out upside down in the headset.

  5. Hey Unity, is the shader graph supposed to be working in HDRP in 2018.1 ?

    1. Shadergraph for HDRP is still in development, but we hope to have an update on this soon!

  6. Hey Unity, Is the shader graph supposed to be working in HDRP in 2018.1 ? Right now i get a pink Mat in the beta (2018.1.0f1)

  7. I’d love a way to save my settings to a template, apply a template to an existing project, and an api to do the same with editor scripts

  8. Version: Unity 2018.2.0b2
    Create a Lightweight project, switch platform to Android, restart Unity, and got several shader errors, one of them:

    Shader error in ‘LightweightPipeline/Standard (Physically Based)’: failed to open source file: ‘LWRP/ShaderLibrary/LightweightPassLit.hlsl’ at line 115 (on d3d11)

    1. Thanks for the info! 18.2 is still, well, under construction :)

  9. Hope some of the new XR templates are targeted for Oculus and Vive, where you need superior graphics than those for mobile VR platforms…

  10. Thanks for the nice intro into this useful feature! Question – is there any 3D template particularly suited for WebGL 1 and 2 ?

    1. Nothing WebGL specific for this release but we are listening to requests for other default template types. And in the future we hope user created templates can fill any and all development pipelines.

  11. So no High Definition Pipeline for Nintendo Switch? Doesn’t this pipeline need Compute functionality to work? As far as I know Switch’s hardware can handle Compute shaders. Or maybe it’s just not recommended on Switch?

    1. Switch support is being worked on now for both Lightweight and HD Pipelines, as for recommended usage it will all depend on what you do with it, lightweight will run a lot better but if you create very optimised assets and don’t have an overly complex game to render HD should work just fine.

  12. A template for procedural games would be nice (disabling all the baked light stuff we can’t use) – and a Scriptable Render Pipeline for procedural games would be awesome !

  13. The comparison shot shows bad color banding in 2018. Do you have a noise option in the lighting shaders?

    1. Appears the color banding you mentioned is due to how the image was saved for the post – now fixed. On that note though, banding (or shadow acne) as a lighting artifact can happen and it is best to customize your bias settings and your shadow cascades settings based on the content you include in your scene.

      1. I was thinking color banding from lighting and the limits of 8bits per color or multiple shader effects. We had to introduce noise to the lighting pipeline to hide this in a project. It is much more obvious on plain colored surfaces or gloomy environments like with Inside.

  14. Is there going to be a renderpipeline for 2d apps like interfaces?

    1. 2D don’t simulate light. So why bother?

  15. All what i see here is great. but is there any thing new for Mecanim ?

  16. I want to start with a blank empty template 😁

  17. can’t wait to test it :)

    1. For a long time it is available in the beta version