Using an Existing Unity Project
Samples & Examples
Core Concepts & Glossary
Unity Package Types
Spaces & Space Templates
Custom Avatar Animations
Custom Prefab Objects
Quests and Rewards
Sync and Multiplayer
Supported Features and Limitations
Publishing to Spatial
Finding Published Packages
Help and Community
This component allows for defining a wearable object to be used in Spatial. Wearables are any object that can be worn, equipped, or attached to an avatar. This can range from clothing, accessories, weapons, and auras to small transportation devices like hoverboards. This is to be used in conjunction with the
Wearablepackage type, which you can reference in the package configuration.
How To Use
Find examples of wearables in the Starter Template
Setting up a wearable is similar to creating a custom prefab object, but requires additional information that tells Spatial where this object should be attached on the avatar.
- First, start by creating your custom object as a Unity Prefab, and add the
Spatial Wearablecomponent to the root GameObject. You can add additional objects and effects that best suits the type of wearable you’re creating.
- Once you have your prefab ready, create a new “PrefabObject” package
- Then, give it a name (this name will be what shows up in the content menu / inventory inside the Spatial app) and drag the prefab you created in step 1 into the
- You will also need to specify a thumbnail of size exactly
512x512in an uncompressed format
- To test this package, make sure it is the “active package” inside the project configuration panel and then press the
Test Active Packagebutton inside the main toolbar.
These limitations are subject to change at any time