URP/HDRP Setup
Last updated
Last updated
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.
Edit > Render Pipeline > Universal Render Pipeline > Update Project Materials
Create these at the top right of the inspector by clicking the layers dropdown!
ExamineLayer
InspectPointMask
Interact
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.
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)
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
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)
Make sure to create another layer called “Interact” and all your interactive objects from the demo will be set as default
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.
"Setting anti-aliasing of already created render texture is not supported! UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)"
SOLUTION: Turn Reflection probes on / off - Please note this is a Unity error and not related to my package or project! :)
SOLUTION: Look at all the children of a "Padlock" that you can interact with in the scene
Make sure they all have the layer of "Default" and not "ExamineLayer" or anything similar.
SOLUTION: Select the "InspectPoints" for an object, take the knife for example and set:
The Object "Layer" to "InspectPointMask"