Skip to content

Format

typescript
Material.renderQueue

class: Material

Description

The rendering queue of the current material.

The value of the rendering queue determines the rendering order of the material. Materials with smaller values will be rendered first, while materials with larger values will be rendered later.

Parameters

param_nametypedescription

Return

typedescription
numberThe rendering queue.

Code Example

typescript
let material = Resources.Load<Material>(Material, "materialId");
material.renderQueue;