SerializedPropertyAdaptor.CanRemove Method

Rotorz ReorderableList

SerializedPropertyAdaptorCanRemove Method
Determines whether an item can be removed from list.

Namespace: Rotorz.ReorderableList
Assembly: Editor.ReorderableList (in Editor.ReorderableList.dll) Version: 0.0.0.0 (0.3.0.0)
Syntax
public virtual bool CanRemove(
	int index
)
public virtual function CanRemove(
	index : int
) : boolean

Parameters

index
Type: SystemInt32
Zero-based index for list element.

Return Value

Type: Boolean
A value of true if item can be removed; otherwise false.

Implements

IReorderableListAdaptorCanRemove(Int32)
Remarks

This should be a light-weight method since it will be used to determine whether remove button should be included for each item in list.

This is redundant when HideRemoveButtons is specified.

See Also