APIDOCUMENTATION
GENERAL
Home
Testing Link
Vatom CLI
SPACES
Overview
Release notes

World Creation

Introduction
Creating Models
Importing Objects
Adjusting Looks
Scene Limitations
Health Monitor
Recommended external tools

Using Plugins

Media: Audio
Places
PLUGINS IN SPACES
Overview
Publishing
Support & Feedback

Guides

Creating a Plugin
Creating a Component
Custom Avatars

Building & Publishing

Examples

API Reference

Globals
Audio
Hooks
Menus
Messages
Objects
Paths
User
World
SMART NFT DESIGNS
Overview

Designs

Create a New NFT Design

Views

Create a New View
Developing Your View
Publishing a View
Change LogForum

Paths

Allows you to access file paths.

When extending BasePlugin, these functions can be accessed via this.paths.*

When extending BaseComponent, these functions can be accessed via this.plugin.paths.*

Functions

absolute(url) : string

Converts a relative path to an absolute path, starting from the URL where the plugin is located.

Returns the absolute path as a string.

FieldTypeDescriptionExample
urlstringRelative URL to a file'./sound.wav'