Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

AdaptiveIcons.IsEmpty

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public bool IsEmpty();

Returns

bool True when no density has both layers, otherwise false.

Description

Reports whether no density has both layers assigned.

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.