Ignore all lighting except for one (HDRP)

How to ignore all lighting on material/object except for one?

To be more precisly i have:

  1. Main Cube size (1,1,1) with children:
  2. Child Cube size(1.1f, 1.1f, 1.1f) (transparent emissive material)
  3. Spot Light set to (0, 0, -1) to Main Cube world position
  4. Player Spot Light that can be looked at the Main Cube

but this is where the question comes in, how to ignore Player Spot Light on Child Cube but still recieve Cube Spot Light?

EDIT: I am using HDRP

3D

A 3D light has a Culling Mask property. You can adjust that to specify which layers a light illuminates. It is then a matter of assigning your visible game objects the correct layers for which lights you want to illuminate them.

2D

In 2D projects, a similar effect can be achieved using Sorting Layers on 2D lights.

  1. To do so in 3D (HDRP) in Mesh Renderer at very bottom is option called Rendering Layer Mask

  2. This has to be changed to different one (make sure that the others layers are uncheked)

  3. Then in Light in General there are little three dots (options) then select “show additional properties”

  4. So it will show Light Layer option, this option needs to be changed to Renderer Layer changed previously (again make sure that the other layers are uncheked)

Thanks to Beacom