YOM Replicator SDK 0.8.0.0
A metaverse SDK created by YOM
Loading...
Searching...
No Matches
UYomInventoryBPFunctions Class Reference

Detailed Description

A BlueprintFunctionLibrary for the inventory system.

Inheritance diagram for UYomInventoryBPFunctions:

Static Public Member Functions

Blueprint Functions
static UYomInventoryComponentGetInventoryFromWidget (UYomPlayerInventoryWidget *pWidget)
 Returns the inventory class and can be called from the UYomPlayerInventoryWidget. More...
 
static void DespawnAllItemsFromWidget (UYomPlayerInventoryWidget *pWidget)
 Despawns all items and can be called from the UYomPlayerInventoryWidget. More...
 
static void SpawnItemFromWidget (UYomPlayerInventoryWidget *pWidget, int pIndex)
 Spawns an item and can be called from the UYomPlayerInventoryWidget. More...
 
static UYomInventoryComponentGetInventory (AYomPlayer *pPlayer)
 Retrieves the inventory of the given YomPlayer. More...
 

Member Function Documentation

◆ DespawnAllItemsFromWidget()

void UYomInventoryBPFunctions::DespawnAllItemsFromWidget ( UYomPlayerInventoryWidget pWidget)
static

Despawns all items and can be called from the UYomPlayerInventoryWidget.

Parameters
pWidgetThe players widget

◆ GetInventory()

UYomInventoryComponent * UYomInventoryBPFunctions::GetInventory ( AYomPlayer pPlayer)
static

Retrieves the inventory of the given YomPlayer.

Parameters
pPlayerThe player
Returns
If found it will return the inventory, if not it will return a nullptr

◆ GetInventoryFromWidget()

UYomInventoryComponent * UYomInventoryBPFunctions::GetInventoryFromWidget ( UYomPlayerInventoryWidget pWidget)
static

Returns the inventory class and can be called from the UYomPlayerInventoryWidget.

Parameters
pWidgetThe players widget
Returns
The inventory class

◆ SpawnItemFromWidget()

void UYomInventoryBPFunctions::SpawnItemFromWidget ( UYomPlayerInventoryWidget pWidget,
int  pIndex 
)
static

Spawns an item and can be called from the UYomPlayerInventoryWidget.

Parameters
pWidgetThe players widget
pIndexThe index of the item