Skip to main content
Version: 12 Dec 2024

Render Pipeline Settings

This section assumes you created a new project using the URP template. The URP template project includes a collection of various URP assets, each pre-configured with different settings to represent different levels of quality. However, for Android apps running on our platform, the default configuration does not allow for a smooth 60 FPS experience in even the simplest scene. Follow these steps to configure the URP settings in your project to improve performance.

Universal Render Pipeline is Optional

Unity's Universal Render Pipeline (URP) supports many platforms and tools, but is not required for Magic Leap 2 applications to function properly. Developers can also use the Standard Render Pipeline (SRP), which offers compatibility with older effects and shaders.

Prerequisites

Delete the starter URP assets

To begin, simplify your project by removing the Pipeline and Renderer assets provided by the template. To do this, select the existing Render Pipeline assets, right-click, and choose Delete.

Delete the starter URP assets

Create a new pair of URP assets

From the Unity menu, select Assets > Create > Rendering > URP Asset (With Universal Renderer)

Configure Render Pipeline asset

Select the Pipeline asset you just created and tweak the Rendering, Quality, Lighting, and Shadows settings, removing or reducing things unnecessary for the look and feel of your project.

URP asset in the examples project

Set the default Scriptable Pipeline

Open your Project's Graphics settings (Edit > Project Settings then select Graphics), and set the Scriptable Render Pipeline Settings to the URP pipeline asset you created in the previous step.

The Scriptable Render Pipeline Settings field

Next Steps

Build A Simple Application

Learn how to build and deploy an application a Magic Leap 2 application.

Configure App Simulator

The Magic Leap App Simulator can be used to test applications much faster, without deploying them to the physical device. See our App Simulator for Unity section to learn how to configure your unity settings to run applications in the Simulator.

Using MRTK for Magic Leap

Developers can quickly build or upgrade applications using Magic Leap's MRTK support package. See the MRTK Magic Leap Getting Started Guide to learn how to use the MRTK for Magic Leap package in your project.