Version 3.3.0.2

OdinGUIScrollView.VisibleItems struct

Namespace: Sirenix.OdinInspector.Editor.Internal
Assembly: Sirenix.OdinInspector.Editor
public struct VisibleItems

Fields

Length
public readonly int Length
Offset
public readonly int Offset

Properties

Item[Int32]
public Rect this[int index] { get; }
Parameters
System.Int32 index

None
public static OdinGUIScrollView.VisibleItems None { get; }

Methods

GetAssociatedData(Int32)
Gets the data associated with the UnityEngine.Rect at the given index; this is the second parameter assigned in the AllocateRect(Single, Object) method.
public object GetAssociatedData(int index)
Parameters
System.Int32 index

The index of the UnityEngine.Rect to retrieve the associated data from.

Returns
System.Object

The associated data.

GetAssociatedData<T>(Int32)
Gets the data associated with the UnityEngine.Rect at the given ; this is the second parameter assigned in the AllocateRect(Single, Object) method.
public T GetAssociatedData<T>(int index)
Parameters
System.Int32 index

The index of the UnityEngine.Rect to retrieve the associated data from.

Returns
T

The associated data.

Type Parameters
T

The expected associated data type.

GetCombinedRects()
Creates a UnityEngine.Rect representing all the visible UnityEngine.Rect's combined.
public Rect GetCombinedRects()
Returns
UnityEngine.Rect

The created UnityEngine.Rect.

GetIndentation(Int32)
Gets the indentation set for the UnityEngine.Rect at the given index.
public float GetIndentation(int index)
Parameters
System.Int32 index

The index of the UnityEngine.Rect to retrieve the indentation for.

Returns
System.Single

The indentation for the UnityEngine.Rect.

GetRect(Int32)
public Rect GetRect(int index)
Parameters
System.Int32 index

Returns
UnityEngine.Rect

HasAssociatedData(Int32)
Checks whether the allocated UnityEngine.Rect has data associated with it.
public bool HasAssociatedData(int index)
Parameters
System.Int32 index

The index of the UnityEngine.Rect to check.

Returns
System.Boolean

true if the UnityEngine.Rect has data associated with it; otherwise false.