Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


vertexCount

The amount of vertices from RayTracingGeometryInstanceConfig.vertexBuffer that defines this ray tracing geometry instance.
Read time 1 minuteLast updated 11 days ago

Definition

public int vertexCount { readonly get; set; }

Remarks

Use -1 to instruct Unity to use all the vertices from RayTracingGeometryInstanceConfig.vertexBuffer when building the acceleration structure associated with the ray tracing instance.