class MAGES::SceneGraph::Editor::ConditionsPanel::ConditionItem¶
Overview¶
A single ConditionData row inside ConditionsPanel. More…
class ConditionItem: public VisualElement
{
public:
// properties
int Index;
bool Expanded;
// methods
ConditionItem(
SerializedProperty data,
int index,
bool expanded,
Action deleteAction
);
};
Detailed Documentation¶
A single ConditionData row inside ConditionsPanel.
Properties¶
int Index
Gets or sets the index into the conditions list.
bool Expanded
Gets a value indicating whether the user has this condition expanded.
Methods¶
ConditionItem(
SerializedProperty data,
int index,
bool expanded,
Action deleteAction
)
Initializes a new instance of the ConditionItem class.
Parameters:
data |
The array element holding the condition. |
index |
The index of the condition in the container. |
expanded |
Whether the row starts expanded. |
deleteAction |
The action to invoke when the item is deleted. |