sapling-dcl
TypeScript icon, indicating that this package has built-in type declarations

1.0.19 • Public • Published

Sapling.gg Decentraland Integration

Easily integrate your LAND with brands to sponsor your experience. Get in touch to learn more: contact@sapling.gg.

Install

npm install sapling-dcl -B

-B ensures that the package will be bundled with your DCL setup.

You must already be using decentraland-ecs (npm install -g decentraland-ecs).

API

import { CreateBillboard } from "sapling-dcl";

// Use default params to start
CreateBillboard(engine);

// Then, you can customize the board location, size, and more!
CreateBillboard(
    engine,
    location,
    scale,
    rotation,
    imageUrl,
    clickUrl
)

This command will add a billboard to you scene with the imageUrl parameter as the banner ad. If a user clicks on the billboard, it will redirect them to clickUrl.

Readme

Keywords

none

Package Sidebar

Install

npm i sapling-dcl

Weekly Downloads

2

Version

1.0.19

License

Apache-2.0

Unpacked Size

11.2 kB

Total Files

6

Last publish

Collaborators

  • thefoolishbard