class MAGES::SceneGraph::Editor::ConditionItem

Overview

A single ConditionData row inside ConditionsView. More…

class ConditionItem: public VisualElement
{
public:
    // properties

    int Index;
    long ManagedReferenceId;
    bool Expanded;

    // methods

    ConditionItem(
        SerializedProperty data,
        int index,
        bool expanded,
        System.Action deleteAction
    );
};

Detailed Documentation

A single ConditionData row inside ConditionsView.

Properties

int Index

Gets or sets the index into the conditions list.

long ManagedReferenceId

Gets the id of the condition instance this item was built from. Stable across list rebuilds and undo, so ConditionsView uses it to remember foldout state.

bool Expanded

Gets a value indicating whether the user has this condition expanded.