# URP/HDRP Setup

{% hint style="danger" %}
If you have any issues at all, don't hesitate to contact me on the contact page on the left hand side, via email or on Discord.
{% endhint %}

### **Step 1: Don't import "Project Settings"**

### **Step 2: Upgrading All Materials (If they're pink)**

{% hint style="info" %}
Edit > Render Pipeline > Universal Render Pipeline > Update Project Materials
{% endhint %}

### Step 3: Create the layers you'll need

{% hint style="info" %}
Create these at the top right of the inspector by clicking the layers dropdown!&#x20;

* ExamineLayer&#x20;
* InspectPointMask
* Interact
  {% endhint %}

### **Step 4: Camera Setup (The Scene or Camera maybe completely white)**&#x20;

1. Select your "**Main Camera**" and set the "**Culling Mask**" so that you **UNTICK** the "**ExamineLayer**" - As we don't want the main camera to render our examinable objects.

![](/files/-MdbT4x5vc5VHoYlNadR)

1. On the "**Main Camera**" find the "**Stack**" options and click the "**+**" icon and now add the "**ExamineCamera**" to this slot (The Examine Camera will need to be an "**Overlay**" - See details below)

![](/files/-MdbT7yGfS0CBssi5iW-)

1. Select the “**Examine Camera**” and make sure the “**Culling Mask**” is set to “**ExamineLayer**” and "**InspectPointMask**"– Make sure to create this in the layers at the top right of the inspector if not already<br>
2. Select the “**Examine Camera**” and make sure it’s type is “**Overlay Camera**” and **NOT** “Base”. \
   Only one camera, your main camera should be set to “**Base**”. **(Only relevant to URP and NOT HDRP)**<br>
3. Make sure to create another layer called “**Interact**” and all your interactive objects from the demo will be set as default<br>
4. I edited the “**DisableManager**” script to incorporate the use of disabling the canvas (Which is instead of the blur effect, which is commented out for URP / HDRP) but this would need to be changed by enabling and disabling a type of blur effect.

## **POSSIBLE ERRORS or ISSUES:**

### **ANTI-ALIASING ERROR:**

{% hint style="danger" %}
"Setting anti-aliasing of already created render texture is not supported! UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)"
{% endhint %}

{% hint style="success" %}
**SOLUTION:** Turn Reflection probes on / off - Please note this is a Unity error and not related to my package or project! :)
{% endhint %}

### PADLOCKS DISPLAYING THROUGH OBJECTS?

{% hint style="success" %}
**SOLUTION:** Look at all the children of a "**Padlock**" that you can interact with in the scene&#x20;

Make sure they all have the layer of "**Default**" and not "**ExamineLayer**" or anything similar.
{% endhint %}

### INSPECT POINTS NOT SHOWING?

{% hint style="success" %}
**SOLUTION:** Select the "**InspectPoints**" for an object, take the knife for example and set:

&#x20;The Object "**Layer**" to "**InspectPointMask**"
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://speedtutoruk.gitbook.io/adventure-puzzle-kit-doc/urp-hdrp-setup/ak-urp-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
