Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsEmpty()

Reports whether no density has both layers assigned.
Read time 1 minuteLast updated 7 days ago

Definition

public bool IsEmpty()

Returns

Type

Description

boolTrue when no density has both layers, otherwise false.

Remarks

A density is only usable when both its background and its foreground are assigned, so this reports true whenever no density has the pair. Assigning null to either layer replaces it with an empty set rather than leaving it null, so this is always safe to call.