Xerial
  • Intro
    • ⚡Introduction
    • 🏁Getting Started
    • â„šī¸Before We Start: Important
  • 👷Build
    • Build Your Account
    • Create Your Assets
    • Inventory
    • Marketplace
    • User Flow
    • Best Practices
      • Attribute Guide
        • Attribute Use Cases
  • â˜„ī¸Xerial APIs
    • đŸ—ī¸API Authorization
    • 🛅Wallet API
      • Getting Started
      • Custodial Wallets
        • Create User
        • Create Wallet
        • Get Wallets
      • Wallet Management
        • Get Chain Native Currency Balance
        • Get Supported ERC20 Tokens Balances
        • Get Project Inventory
      • Transaction Proccessing
        • Transfer Xerial NFT
        • Transfer Chain Native Currency
        • Transfer ERC20 Token
        • Primary Purchase Xerial NFT
        • Secondary Purchase
        • List Xerial NFT
        • Delist Xerial NFT
        • Execute Custom Transaction
      • Errors Handling
        • Authentication Errors
        • Wallet Management Errors
        • Transaction Proccessing Errors
    • 🛒Marketplace API
      • Get Listed NFTs
      • Get Community Listed Items
      • Get Collections
      • Get Project Data
    • đŸ–ŧī¸NFT API
      • NFT Drop
    • 🌐Xerial Global Wallets
      • Get User Wallet Info
      • Get Global Inventory
      • User Authorization
      • Logout
  • đŸ› ī¸Xerial SDK
    • Wallet SDK
  • đŸŽī¸Gaming Toolkit
    • đŸ•šī¸Xerial Unity SDK Guide
      • âŦ‡ī¸Installation
      • âš™ī¸Configuration
      • Xerial Services
        • Set Up Xerial Services
        • Service Managers
          • Session Manager
          • Wallet Manager
            • UserData Class
              • Account Class
              • Wallet Class
              • Creating UserData Class
          • Inventory Manager
            • NFTs
              • Metadata
              • Attributes
            • NFTInventory Class
            • Creating NFT Inventory
          • MarketPlace Manager
    • Unreal Engine SDKs
Powered by GitBook
On this page
  • Usage
  • Constructor
  • Properties
  • Methods
  1. Gaming Toolkit
  2. Xerial Unity SDK Guide
  3. Xerial Services
  4. Service Managers
  5. Inventory Manager

NFTInventory Class

The NFTInventory class is responsible for managing the inventory of NFTs within Unity applications using the Xerial services. It provides functionalities to add NFTs to the inventory.

Usage

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Xerial
{
    public class NFTInventory
    {
        // Implementation details
    }
}

Constructor

/// Initializes a new instance of the NFTInventory class.
public NFTInventory()
{
    // Initialization of class members
    nfts = new List<NFT>();
}

Properties

  • nfts: A list of NFT objects representing the NFTs in the inventory.

Methods

  • AddNFT(NFT nft): Adds the specified NFT to the inventory.

Example

// Instantiate NFTInventory
NFTInventory inventory = new NFTInventory();

// Add NFT to inventory
NFT nft = new NFT(/* Initialize NFT properties */);
inventory.AddNFT(nft);
PreviousAttributesNextCreating NFT Inventory

Last updated 1 year ago

đŸŽī¸
đŸ•šī¸