LogoLogo
  • Manifesto
    • What is YOM?
      • State of Gaming
      • Decentralizing Cloud Gaming
    • Technology
      • YOM DePIN
      • YOM Webapp
      • YOM SDK
    • 🏆Ecosystem
      • Value Flow
      • Tokenomics
      • Reputation
      • Governance
      • Programs
  • 🏗️BUILD
    • 📄Overview
      • Key Components
    • 🚀Getting Started
      • Import the UE5 SDK
      • Configure your Stream
      • Test your Stream
      • Package your Stream
      • Deploy your Stream
      • Integrate your Stream
        • Custom Authentication
        • Event Handling
        • Multi-Stream Setup
        • Dynamic Layouts
    • 🛠️SDK Features
      • Responsive Design
      • Custom Characters
      • Registering Events
      • Push Events
      • Optional
        • SDK Assets
        • Inventory
        • Portals
        • Nameplates
        • Gated Access
        • Airdrops
        • Counters
        • Control Hints
    • ⚡Stream Optimization
  • 💎EARN
    • 💻Node Rewards
    • ⚖️YOM vs Aethir
    • 🚀Getting Started
      • Delegation
      • Self-hosted
        • Disk
        • Code
    • ⚡Rig Optimization
  • Node Owners
    • Node Operators Manual
      • Understanding Your Role as a Node Operator
      • Self-Hosted vs. Delegated Nodes
      • Hardware Requirements
      • Getting Started: Choosing Your Node Type & Obtaining a Node License
      • Installation Guide
      • Monitoring Your Node
      • The $YOM Reward System
      • The Role of $YRX (XP Points)
      • Staking $YOM for Enhanced Rewards
      • Troubleshooting Common Issues & FAQs
      • Community & Support Channels
      • Understanding Network Dynamics & Updates
      • Security Best Practices
      • $YOM Token Economy & Burn Mechanism
      • KYC & Compliance
      • Minimum Payout Program & Stay Online Incentives
      • Potential Risks & Considerations
      • Glossary of Terms
  • Compliancy
    • Token Disclaimer
    • Terms and Conditions
    • Privacy Policy
  • About
    • Token Allocation
    • 🙋Social Media
    • ⁉️FAQ
Powered by GitBook
On this page
  • Step 1: Adding the Gated Access component:
  • Step 2: Adding the Gated Access actor to the level:
  • Step 3: Setting the Gated Access Item ID:
  • Step 4: Setting up a Collision Layer:

Was this helpful?

Export as PDF
  1. BUILD
  2. SDK Features
  3. Optional

Gated Access

PreviousNameplatesNextAirdrops

Last updated 10 months ago

Was this helpful?

To create exclusivity and restrict access to experiences based on specific item ownership in YOM, you can follow these steps:

Step 1: Adding the Gated Access component:

  • By default, the Gated Access component (YomGatedAccess) should already be connected to your Metaspace Player. If you don't see it as a component, you'll need to add it manually.

  • To add the component, click on the "Add Component" button in the blueprint editor and search for "Yom Gated Access." Add it to your Metaspace Player blueprint.

Step 2: Adding the Gated Access actor to the level:

  • To implement the Gated Access functionality, search for "Yom Gated Access" in the Place Actors window and drag it into the level where you want to create the restricted zone.

Step 3: Setting the Gated Access Item ID:

  • Click on the Gated Access actor in the level.

  • Look for the "Item ID" property and insert the NFT address or master ID of the NFT item that is required for access. Note that you have separate IDs for devnet and mainnet.

Setting the Item ID for gated access

Step 4: Setting up a Collision Layer:

  • Set up a collision object channel for the Gated Access to work properly.

  • Go to Project Settings and navigate to the Collision section.

  • Click on the "New Object Channel" button.

  • Name the channel as "GatedAccess" and set the default response to "Overlap."

Notes:

  • You can check if a player has access to the Gated Access zone by calling the blueprint function "Can Player Access."

  • Make sure the inventory is enabled for the player for this functionality to work.

  • The user's wallet needs to be fetched before they can go through the Gated Access.

Example gated access volume, only accessible when possessing a certain Item
🏗️
🛠️