bool IsExpanded { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The IsExpanded property of the InspectorHeader class in the Editor namespace indicates whether the inspector header is currently expanded or collapsed. This property is a boolean value, where true means the header is expanded, and false means it is collapsed.

Usage

Use the IsExpanded property to check or set the expanded state of an InspectorHeader instance. This can be useful for managing the visibility of additional details or controls within the inspector UI.

Example

// Example of using the IsExpanded property

// Create an instance of InspectorHeader
InspectorHeader header = new InspectorHeader();

// Check if the header is expanded
bool isHeaderExpanded = header.IsExpanded;

// Expand the header if it is not already expanded
if (!isHeaderExpanded)
{
    header.IsExpanded = true;
}

// Collapse the header
header.IsExpanded = false;