Methods
-
<static> create(type, options)
-
Function to create a SKARF.GuiMarker instance
Parameters:
Name Type Description typestring Type of GuiMarker to create: 'generic', 'button', 'checkbox', 'slider', 'combobox', 'timer' optionsobject Options Properties
Name Type Description keystring Unique string ID that identifies this GUI marker. This name is used to search for callback functions related to this GUI marker. namestring Name for this GUI marker markerIdnumber ID of the AR marker markerTransformTHREE.Object3D A transform to hold this GUI marker markerSizenumber Scale of the GUI marker paramsobject Additional parameters to customize this GUI marker -
<static> register(mappingName, mappingClass)
-
Registers a type string to a class
Parameters:
Name Type Description mappingNamestring Name of the mapping which is used to identify the type when creating instances e.g. 'threejs' mappingClassSKARF.GuiMarker GuiMarker class that will be created when the associated type is used