C# Class Borodar.ReorderableList.SerializedPropertyAdaptor

Reorderable list adaptor for serialized array property.

This adaptor can be subclassed to add special logic to item height calculation. You may want to implement a custom adaptor class where specialised functionality is needed.

List elements are not cloned using the System.ICloneable interface when using a UnityEditor.SerializedProperty to manipulate lists.

Inheritance: IReorderableListAdaptor
Afficher le fichier Open project: PhannGor/unity3d-rainbow-folders Class Usage Examples

Méthodes publiques

Свойство Type Description
FixedItemHeight float

Méthodes publiques

Méthode Description
Add ( ) : void
BeginGUI ( ) : void
CanDrag ( int index ) : bool
CanRemove ( int index ) : bool
Clear ( ) : void
DrawItem ( Rect position, int index ) : void
DrawItemBackground ( Rect position, int index ) : void
Duplicate ( int index ) : void
EndGUI ( ) : void
GetItemHeight ( int index ) : float
Insert ( int index ) : void
Move ( int sourceIndex, int destIndex ) : void
Remove ( int index ) : void
SerializedPropertyAdaptor ( UnityEditor.SerializedProperty arrayProperty ) : System

Initializes a new instance of SerializedPropertyAdaptor.

SerializedPropertyAdaptor ( UnityEditor.SerializedProperty arrayProperty, float fixedItemHeight ) : System

Initializes a new instance of SerializedPropertyAdaptor.

this ( int index ) : UnityEditor.SerializedProperty

Gets element from list.

Method Details

Add() public méthode

public Add ( ) : void
Résultat void

BeginGUI() public méthode

public BeginGUI ( ) : void
Résultat void

CanDrag() public méthode

public CanDrag ( int index ) : bool
index int
Résultat bool

CanRemove() public méthode

public CanRemove ( int index ) : bool
index int
Résultat bool

Clear() public méthode

public Clear ( ) : void
Résultat void

DrawItem() public méthode

public DrawItem ( Rect position, int index ) : void
position UnityEngine.Rect
index int
Résultat void

DrawItemBackground() public méthode

public DrawItemBackground ( Rect position, int index ) : void
position UnityEngine.Rect
index int
Résultat void

Duplicate() public méthode

public Duplicate ( int index ) : void
index int
Résultat void

EndGUI() public méthode

public EndGUI ( ) : void
Résultat void

GetItemHeight() public méthode

public GetItemHeight ( int index ) : float
index int
Résultat float

Insert() public méthode

public Insert ( int index ) : void
index int
Résultat void

Move() public méthode

public Move ( int sourceIndex, int destIndex ) : void
sourceIndex int
destIndex int
Résultat void

Remove() public méthode

public Remove ( int index ) : void
index int
Résultat void

SerializedPropertyAdaptor() public méthode

Initializes a new instance of SerializedPropertyAdaptor.
public SerializedPropertyAdaptor ( UnityEditor.SerializedProperty arrayProperty ) : System
arrayProperty UnityEditor.SerializedProperty Serialized property for entire array.
Résultat System

SerializedPropertyAdaptor() public méthode

Initializes a new instance of SerializedPropertyAdaptor.
public SerializedPropertyAdaptor ( UnityEditor.SerializedProperty arrayProperty, float fixedItemHeight ) : System
arrayProperty UnityEditor.SerializedProperty Serialized property for entire array.
fixedItemHeight float Non-zero height overrides property drawer height calculation.
Résultat System

this() public méthode

Gets element from list.
public this ( int index ) : UnityEditor.SerializedProperty
index int Zero-based index of element.
Résultat UnityEditor.SerializedProperty

Property Details

FixedItemHeight public_oe property

Fixed height of each list item.

Non-zero value overrides property drawer height calculation which is more efficient.

public float FixedItemHeight
Résultat float