Skip to main content

PointerBuilder

A builder for the Pointer item.

Extends GenericItemBuilder

Example

import { buildPointer } from "@owlbear-rodeo/sdk";

const pointer = buildPointer().position({ x: 0, y: 0 }).build();

Reference

Methods

color

color(color);

Set the pointers color.

Parameters

NAMETYPEDESCRIPTION
colorstringThe color of the pointer

Returns the current builder.


radius

radius(radius);

Set the pointers radius.

Parameters

NAMETYPEDESCRIPTION
radiusnumberThe radius of the pointer

Returns the current builder.


build

build();

Returns the final Pointer item.