Version: 2023.2
public int layer ;

描述

The Layer used by the ray tracing instance.

When you manually add ray tracing instances to a RayTracingAccelerationStructure using RayTracingAccelerationStructure.AddInstance, Unity filters instances based on the acceleration structure's layer mask. You specify the layer mask when you create the RayTracingAccelerationStructure.

Additional resources: RayTracingAccelerationStructure.Settings