JSPM

  • Created
  • Published
  • 0
  • Score
    100M100P100Q34250F
  • License Apache-2.0

DCL library for the NEAT attendance token

Package Exports

  • dcl-neat
  • dcl-neat/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dcl-neat) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

DCL NEAT Library

This folder contains all the necessary files to include the NEAT protocal into your deployed Decentraland scene.

Installation

Install the npm package

Download and install the Decentraland Neat package by running the following command:

npm i dcl-neat

Usage

Import the neat library into your code

import {neat} from 'dcl-neat'

Configuration

Anywhere inside your Decentraland scene, place the following code with parameters:

import {neat} from 'dcl-neat'

neat.init(
    false,  //remove the standard triangle GLB
    false,  //admin mode; allow creator to view neat locally
    false,  //hide avatars when close proximity
    false,  //auto rotation
    2,      //click distance
    {position: new Vector3(8,1,8)}, //transform arguments
    'neat-id'   //optional token id specific to this neat location
    ) 

Resources

Learn more about NEATS and access the creator portal at our website.

If you need any help, join Last Slice's Discord, where you'll find a #neat support channel for bug requests and more on demand help, or email us at info@lastslice.org.