How many materials have been constructed and not yet disposed (§83).
Every family member (UnlitMaterial, LitMaterial, SpriteMaterial,
StandardMaterial, NodeMaterial, and any subclass of Material)
counts as one: they all go through the base constructor and
Material.dispose.
Reading it allocates nothing and costs one property read. A material that
is collected without dispose() is never subtracted — that is the leak
signal, not an oversight.
How many materials have been constructed and not yet disposed (§83).
Every family member (
UnlitMaterial,LitMaterial,SpriteMaterial,StandardMaterial,NodeMaterial, and any subclass of Material) counts as one: they all go through the base constructor and Material.dispose.Reading it allocates nothing and costs one property read. A material that is collected without
dispose()is never subtracted — that is the leak signal, not an oversight.