Show / Hide Table of Contents

Class ListItemView

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
ListItemView
Namespace: BennyKok.RuntimeDebug.Components.UI
Assembly: com.bennykok.runtime-debug-action.dll
Syntax
[AddComponentMenu("Runtime Debug Action/UI/List Item View")]
public class ListItemView : MonoBehaviour, IPointerDownHandler, IPointerUpHandler, IPointerExitHandler, IPointerEnterHandler, IEventSystemHandler

Fields

actionColor

Declaration
public Image actionColor
Field Value
Type Description
UnityEngine.UI.Image

button

Declaration
public Button button
Field Value
Type Description
UnityEngine.UI.Button

darkenActionColor

Declaration
[Tooltip("Darken the action color for visibility")]
public bool darkenActionColor
Field Value
Type Description
System.Boolean

folderIcon

Declaration
[Title("Options", 2)]
[Tooltip("The custom icon used if this list item is a group item")]
public Sprite folderIcon
Field Value
Type Description
UnityEngine.Sprite

icon

Declaration
public Image icon
Field Value
Type Description
UnityEngine.UI.Image

idx

Declaration
[NonSerialized]
public int idx
Field Value
Type Description
System.Int32

isDestroyed

Declaration
public bool isDestroyed
Field Value
Type Description
System.Boolean

item

Declaration
[NonSerialized]
public ListItem item
Field Value
Type Description
ListItem

label

Declaration
[Title("Reference", false, 2, order = 1)]
public TextMeshProUGUI label
Field Value
Type Description
TMPro.TextMeshProUGUI

previousDown

Declaration
[NonSerialized]
public bool previousDown
Field Value
Type Description
System.Boolean

showIcon

Declaration
[Tooltip("Enable the icon display of this list item")]
public bool showIcon
Field Value
Type Description
System.Boolean

Properties

isFocused

Declaration
public bool isFocused { get; set; }
Property Value
Type Description
System.Boolean

IsGroup

Declaration
public bool IsGroup { get; }
Property Value
Type Description
System.Boolean

RectTransform

Declaration
public RectTransform RectTransform { get; }
Property Value
Type Description
UnityEngine.RectTransform

Methods

OnPointerDown(PointerEventData)

Declaration
public void OnPointerDown(PointerEventData eventData)
Parameters
Type Name Description
UnityEngine.EventSystems.PointerEventData eventData

OnPointerEnter(PointerEventData)

Declaration
public void OnPointerEnter(PointerEventData eventData)
Parameters
Type Name Description
UnityEngine.EventSystems.PointerEventData eventData

OnPointerExit(PointerEventData)

Declaration
public void OnPointerExit(PointerEventData eventData)
Parameters
Type Name Description
UnityEngine.EventSystems.PointerEventData eventData

OnPointerUp(PointerEventData)

Declaration
public void OnPointerUp(PointerEventData eventData)
Parameters
Type Name Description
UnityEngine.EventSystems.PointerEventData eventData

RefreshStatus(BaseDebugAction, DebugUIHandler)

Declaration
public void RefreshStatus(BaseDebugAction action = null, DebugUIHandler uiHandler = null)
Parameters
Type Name Description
BaseDebugAction action
DebugUIHandler uiHandler

SetItem(DebugUIHandler, ListView, ListItem)

Declaration
public void SetItem(DebugUIHandler ui, ListView listParent, ListItem item)
Parameters
Type Name Description
DebugUIHandler ui
ListView listParent
ListItem item
In This Article
👆 RuntimeDebugAction by ❤️ BennyKok