REACH Explorer
  • ❓Getting Started
  • 🖥️REACH Explorer
    • ⏬Downloads
    • 👤Create an Account
    • 👥Equip an Avatar
    • ⚡Blockchain
      • 💰Connect a Wallet
        • Cardano
        • Ethereum
    • ℹ️Support
      • 💻Device Requirements
      • 🌐How to Clear Browser Cache
    • ⚖️Terms of Service
  • 🛠️Metaverse Cloud Engine SDK
    • 🎮Unity Engine SDK
      • ⚠️Limits
      • ⬇️How to Install the SDK
      • 👤Create an Account
      • ⬆️Upload a Space
      • ⬆️Upload a Prefab
      • ⬆️Upload an Avatar
      • 🤳AR Experiences
      • 👀Content Visibility
      • 🎥Render Pipelines
      • 📂3D File Formats
      • 📜Custom Scripting
        • Custom JavaScript
          • Getting Started
          • Guidelines
      • 🔧Components
        • AI & Machine Learning
          • AI Agent
          • Text To Speech
        • Interactions
          • Metaverse Interactable
            • Non VR Animation
        • Networking
          • Network Object
          • Network Transform
          • Network Object RPC
          • Network Event
        • Blockchain
          • Blockchain GLB
          • Blockchain Query
        • Avatars
          • Player Avatar Container
        • General
          • Platform API
          • Video Camera API
        • Assets
          • Asset
            • Asset Meta Data
          • Meta Space
            • Meta Space Meta Data
          • Meta Prefab
            • Meta Prefab Meta Data
Powered by GitBook
On this page

Was this helpful?

  1. Metaverse Cloud Engine SDK
  2. Unity Engine SDK
  3. Components
  4. Assets

Meta Prefab

PreviousMeta Space Meta DataNextMeta Prefab Meta Data

Last updated 1 year ago

Was this helpful?

For more information about how to upload a meta prefab, click below.

MetaPrefab Documentation

The MetaPrefab class represents a prefab within the Metaverse. A prefab is a piece of content that can be spawned into the world. MetaPrefabs are similar to Unity prefabs, but they are stored on the server and can be loaded and spawned dynamically at runtime.

Namespace

MetaverseCloudEngine.Unity.Assets.MetaPrefabs

Public Methods

  • void Allocate(): Registers this MetaPrefab instance with the MetaPrefabLoadingAPI. This method is typically called automatically when the MetaPrefab is spawned.

  • bool CheckRenderPipeline(bool addMapperToChildren = false): Checks whether the MetaPrefab is compatible with the current render pipeline and applies any necessary material remapping.

Public Properties

  • MetaPrefabSpawner Spawner (read only): The spawner that spawned this prefab.

  • bool UsesScriptableRenderPipeline (read only): Whether or not this prefab is supported by the scriptable render pipeline.

Inspector Fields

  • MetaPrefabMetadata MetaData: The asset's metadata, which includes details such as the name, description, and blockchain references.

  • bool scriptableRenderPipelineSupported: Whether or not this prefab is supported by the scriptable render pipeline.

Behavior

  • Execution Order: This class inherits from MetaverseBehaviour, which uses the default Unity execution order.

Usage

  1. To use MetaPrefab, start by adding the component to a GameObject in your scene. This GameObject should be a prefab.

  2. Configure the MetaData property to specify the details of your MetaPrefab.

  3. You can then use the MetaPrefabSpawner component to spawn your MetaPrefab at runtime.

Additional Notes:

  • MetaPrefabs can be uploaded to the Metaverse Cloud Engine using the MetaPrefabEditor in the Unity Editor.

  • MetaPrefabs can be nested, meaning that a MetaPrefab can contain other MetaPrefabs as children.

  • The MetaPrefabLoadingAPI is used to load MetaPrefabs into memory so that they can be spawned at runtime.

🛠️
🎮
🔧
⬆️Upload a Prefab