文档

Unity Engine


User Manual

Script Reference

Unity Engine


layer

The Layer used by the ray tracing instance.
阅读时间1 分钟最后更新于 23 天前

Definition

public int layer { readonly get; set; }

Remarks

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