LogoLogo
API Status
  • 👋Welcome
  • 🌐What is Morpheus Platform?
    • Interoperability
  • â„šī¸Help
    • 📗Glossary
    • 🆘Support
    • Firewall problems
    • EULA
  • CREATION
    • 🎮Unreal Development
      • ⚡Get Started
        • âš’ī¸Download the Editor
        • âĢUpload Content
        • 🌎Creating your own map
        • 📝Morpheus Base Project
        • ❓Differences from Unreal
          • 🧍Character Configuration
        • 📡Morpheus Networking
          • Introduction to Morpheus Networking
          • Network Levels
          • Replicated Properties
          • RPCs
          • Morpheus Render Targets
          • Morpheus Array
          • Networking FAQ
          • Replicating Sublevels
      • 📚Features & Guides
        • 📒Example Plugin
          • Nameplates
          • In-game roles
          • Resizing
        • 🏊Actor Pooling
        • 🔊Audio
        • 🎭Avatars
          • Creating an Avatar
          • Attachments
            • MML Attachments
          • Custom Animation Variables
          • Importing an NFT collection
          • Capsules and Mesh Transforms
        • 🤖Bots
        • đŸŽ™ī¸Chat
          • Unreal Text Chat
        • đŸŽ›ī¸Control Panels
          • Control Panel Configuration
          • DJ booth mission control
          • Observer Controls
        • 🔉Crowd Audio
        • đŸ¤ŧCrowd Rendering
          • Legacy Animated Crowd
            • Animated Crowd Console Commands
            • Attaching static meshes to crowd members
          • Crowd Materials
          • Performance Parameters
          • Live Config Settings
          • Crowd Animation
            • Crowd Anim Blueprint
              • User Guide - Crowd Anim Blueprint
              • Reference Guide - ABP Nodes
                • Animation Playback
                • States and State Machines
                • Variables
                • Transitions
                • Special
                • Blends
                • Additional Notes
        • 🍱Helpers & Extras
          • "Instanced Objects" in Blueprints
          • Objects with "world context"
          • Making DataAsset classes
          • Duplicate Objects
          • The Bootflow Subsystem
          • The "Wait For Condition" System
          • Advanced Graphics settings
          • Listening to inputs on UObjects
          • Morpheus UserID
          • World Services
          • M2Extras: Skins System
        • đŸ–Ĩī¸Loading Screen
        • ⚡Live Config
          • Editing for a World
          • Editing Locally
          • Default Settings
          • Accessing via Blueprint
          • Adding New Settings
          • Overriding Defaults
          • Using Arrays
        • 🧊MML
        • đŸ•ēMotion Capture
        • 📡Networking
        • đŸ“ĸNotifications
        • Raycastable Crowd
        • 🌐Singletons
        • 📱Streaming & Multiplatform
          • GFN on mobile
        • đŸ–Ĩī¸UI
          • "UI Mode"
        • đŸ—ƒī¸User Collections
          • Creating a New Object Definition
          • Accessing from Unreal
            • Creating Objects Definitions
            • Transfer Objects
            • User Collection Views
            • Receiving Updates
        • đŸ“ēVideo Players
          • Embedded Video Player
          • Millicast video streaming
            • How to Setup an In-Game Video Stream
            • Picture-in-Picture mode
          • Streaming Video Player
            • How to Setup a URL Video Player
            • Picture-in-Picture mode
        • 🐞Visual Debugging
          • Inspector
        • đŸĒŸWeb UI
        • Online Services
          • KV Store Service
        • 💠Web Requests
          • Http Requests
            • Legacy HTTP Nodes
          • JSON Handling
          • WebSockets
          • Identity Validation
          • Allowed External URLs
          • Walkthrough Example
            • Example Counter Service
        • âœˆī¸World Travel
          • World Travel in the editor
        • Avatar Physics Assets
        • Action Gameplay Helper Components
      • 🔑Workflows
        • â†—ī¸Upgrade the Editor
          • đŸ–Ĩī¸Version History
        • âš™ī¸Editing Project Settings
        • 📈Profiling
        • đŸ§ēMarketplace Importing
        • đŸ› ī¸Extra Workflows
          • Setup Play-in-Editor
          • Setup Local Asset Validation
          • Adding Gameplay Tags
          • Validating Game Assets
          • Custom Connection Modes
          • Connect Editor to a World
          • Common Issues
      • 📚Useful Reading
        • ⭐Best Practices
    • 🌎Worlds
      • 📩Invite Players
        • Setting Role Groups
      • Persistent Worlds
      • Always on Worlds
    • 📅Running events
      • ✅Large scale events - Checklist
      • 👾Anti-Cheat (EAC)
      • 🎮Player Entry
        • 📱React Native
        • Steam
        • đŸ’ģHardware Reqs
      • đŸŽĨBroadcast
        • 📹OBS Integration
      • Failover
      • 🏁Capacity And Queue Management
  • ADMINS
    • đŸ‘ĒAccess Control
      • Adding metaverse contributors
      • Creating a new project
    • 💲Pricing
      • Development Support
      • Included Usage & Overages
      • Cloud Streaming
      • Access Modes
      • War Room Support
      • Platform SLA
    • âš™ī¸Settings
      • đŸ—ƒī¸Projects
  • APIs and Tooling
    • đŸ–Ĩī¸API Reference
      • Accounts
      • Events
      • Key/Value Store
      • Organizations
      • Realtime
      • User Profile
      • World Builder
      • Worlds
    • đŸ’ģTemplate Web App
      • đŸ’ĸModeration
    • Pixel Streaming
    • 🚀Launcher
  • Integrations
    • 📊Analytics
      • Sending events from web
      • 🎮Sending Events from Unreal
    • đŸ’ŦChat
      • 🎮Integrating Pubnub with your Unreal Project
      • Adding Moderation to Chat
Powered by GitBook
On this page
  • Compatibility
  • MML Avatars
  • Other MML objects
  • How to add an MML object to your level
  • How to delete an MML object from your level

Was this helpful?

  1. CREATION
  2. Unreal Development
  3. Features & Guides

MML

Support for the Metaversal Markup Language

PreviousUsing ArraysNextMotion Capture

Last updated 7 months ago

Was this helpful?

M² supports loading interactive interoperable MML objects (see ).

Compatibility

Each element's compatibility with the rendering engines used by different components of the M² Platform (Unreal and Web) are listed on . For example: here's the for the <m-model> element.

In cases where an mml element contains a media format, for instance, we only support formats that are supported by the underlying rendering engine.

MML Avatars

We use MML for Avatar Models. These can , from an , or be hand-written and uploaded by a user.

Avatar Format

For an MML file to be a valid avatar it must have a single top-level <m-character> element specifying the source mesh file. It can also optionally contain <m-model> child elements, which you can use to build avatars out of multiple meshes. The skeletons on these meshes must all match the UE5 skeleton. You can also add static meshes as attachments by using the socket attribute.

See here for full details and examples:

As an example, a single mesh avatar MML is as simple as this:

<m-character src="https://public.mml.io/character-body.glb"></m-character>

Whereas an avatar with multiple meshes and an attachment might look like this:

<m-character src="https://public.mml.io/character-body.glb"
  <m-model src="https://public.mml.io/character-head.glb"></m-model>
  <m-model src="https://public.mml.io/duck.glb" socket="hand_r" rx="180" ry="10" rz="-90" x="-0.15" y="-0.047" z="0.04" sx="0.1" sy="0.1" sz="0.1"></m-model>
</m-character>

Animations don't need to be specified for MML avatars, and will be ignored in the game client. The avatar will be animated using the standard animations for the project (hence the need for meshes to use the correct skeleton).

Using MML Avatars in game

No additional setup is needed to enable MML avatars in the game client. Project blueprints can call JM_ModularCharacterComponent::LoadInteropCharacterFromUrl with the URL of an MML avatar and it will attempt to load it for your player character, and replicate it so it's visible to other players. See WBP_SettingAvatarExample for an example of enabling users to paste an avatar URL into the settings menu.

Players can also have default a MML avatar stored on their profile. By default these won't be loaded in, but if you enable the Character.UseCharacterFromProfile live config flag for your project then any player entering the world will automatically load their custom MML avatar from their profile.

Other MML objects

Inventory.HidePlaceMode: false,
Inventory.MaxPlacementSlots: [number greater than 0],
UserCollection.EnabledOnServers: true

The Place tab in the inventory will then show all MML collection items, and you can then use the quickbar to place them into the map.

How to add an MML object to your level

This is a blueprint that spawns an MML object.

This is a slightly more involved example of a blueprint. It's a clickable mesh that spawns an MML object on click.

How to delete an MML object from your level

This is a blueprint that sets a reference to a spawned MML document so that you can then use the reference later to remove the document from the world.

To easily make your own compatible GLB mesh files that you can use as part of a valid Avatar MML file, see .

We also support users dropping custom MML objects directly into worlds. One way of doing this is by using Place mode in the system. If you're using the default WBP_ItemManagement UI as part of your HUD then you can enable this by ensuring a few live configs are set:

🎮
📚
🧊
mml.io
mml.io
compatibility table
<m-video>
come from NFTs
in-game editor
https://mml.io/docs/reference/elements/m-character
Creating MML Avatars with Blender and Free Rigging Tools
Inventory and Quickbar