Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione Client Veloce

SceneCapture:EncodeToBase64Async

Takes a snapshot of the SceneCapture and returns a Base64 of it (asynchronously)

Non ancora tradotto

Sintassi

Lua
my_scene_capture:EncodeToBase64Async(image_format = ImageFormat.JPEG, callback)

Parametri

Nome Tipo Predefinito Descrizione
image_format facoltativo ImageFormat ImageFormat.JPEG Which format to generate - JPEG is fastest but discards Alpha channel
callback function Callback
Firma della callback function(base_64)
  • base_64 string The base 64 content