Version: 2023.2
public int layer ;

描述

The Layer used by the ray tracing instance.

When you manually add ray tracing instances to a RayTracingAccelerationStructure, RayTracingAccelerationStructure.AddInstance filters instances based on the acceleration structure's Layer Mask.

Additional resources: RayTracingAccelerationStructure.Settings