layer
The Layer used by the ray tracing instance.
読み終わるまでの所要時間 1 分最終更新 23日前
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
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