Class ListItemView
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
ListItemView
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
Field Value
Type |
Description |
UnityEngine.UI.Image |
|
Declaration
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
Field Value
Type |
Description |
UnityEngine.UI.Image |
|
idx
Declaration
[NonSerialized]
public int idx
Field Value
Type |
Description |
System.Int32 |
|
isDestroyed
Declaration
Field Value
Type |
Description |
System.Boolean |
|
item
Declaration
[NonSerialized]
public ListItem item
Field Value
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 |
|
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
SetItem(DebugUIHandler, ListView, ListItem)
Declaration
public void SetItem(DebugUIHandler ui, ListView listParent, ListItem item)
Parameters