Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


indexCount

The amount of indices from RayTracingGeometryInstanceConfig.indexBuffer that defines this ray tracing geometry instance.
Read time 1 minuteLast updated 4 days ago

Definition

public int indexCount { readonly get; set; }

Remarks

Use -1 to instruct Unity to use all the indices from RayTracingGeometryInstanceConfig.indexBuffer when building the acceleration structure associated with the ray tracing instance. If the value is positive, it must be a multiple of 3 and together with RayTracingGeometryInstanceConfig.indexStart it must define a valid range into RayTracingGeometryInstanceConfig.indexBuffer.