Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


opaqueMaterial

Determines whether Unity considers the material opaque.
Read time 1 minuteLast updated 10 days ago

Definition

public bool opaqueMaterial { readonly get; set; }

Remarks

If you use ray tracing shaders, Unity disables any hit shaders for opaque materials so the GPU doesn't execute them.