Optional
jwtInstantiate a new instance of DroppedAsset class.
const droppedAssetInstance = await DroppedAsset.create(assetId, urlSlug, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
Optional
options: DroppedAssetOptionalInterfaceDrops an asset in a world and returns a new instance of DroppedAsset class with all properties.
const assetInstance = await Asset.create(id, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
const droppedAssetInstance = await DroppedAsset.get(assetInstance, {
assetScale: 1.5,
flipped: true,
layer0: "",
layer1: "https://pathtoimage.png",
interactivePublicKey,
isInteractive: true,
position: { x: 0, y: 0 },
uniqueName: "exampleUniqueName",
urlSlug,
});
Optional
assetOptional
clickOptional
clickableOptional
clickableOptional
clickableOptional
clickableOptional
flipped?: booleanOptional
interactiveOptional
isOptional
isOptional
isOptional
isOptional
layer0?: stringOptional
layer1?: stringOptional
sceneOptional
text?: stringOptional
textOptional
textOptional
textOptional
textOptional
uniqueOptional
yOptional
error?: unknownOptional
message?: stringOptional
params?: objectOptional
sdkInstantiate a new instance of DroppedAsset class and retrieve all properties.
const droppedAssetInstance = await DroppedAsset.get(assetId, urlSlug, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
Optional
options: DroppedAssetOptionalInterfaceSearches dropped assets within a world by a provide uniqueName
. If a single match is found, a new instance of DroppedAsset class is returned all properties.
const droppedAssetInstance = await DroppedAsset.getWithUniqueName("exampleUniqueName", urlSlug, interactiveSecret, credentials);
Optional
apiOptional
interactiveOptional
visitor
Usage