Skip to content

Parameters

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

interface Parameters {
title?: string,
text?: string,
defaultValue?: string,
maxLength?: number,
filterProfanity?: boolean
}

A dictionary of parameters.

VariableTypeDescription
titleoptional, stringThe title of the dialog displayed to the user
textoptional, stringA short piece of text to display above the text entry box
defaultValueoptional, stringA value to pre-fill the text entry box with
maxLengthoptional, numberThe maximum length of the user’s entry in number of characters
filterProfanityoptional, booleanIf true Z.Prompt will attempt to replace expletives with random punctuation