ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setElementPreviewRefresh

Function

setElementPreviewRefresh

ClientGame engineTrilogy Hub only

Sets how often in milliseconds the preview takes a new shot (at least 50; 0 = only after a change and updateElementPreview). One shot costs about 10 ms of a frame.

Syntax

bool setElementPreviewRefresh(preview preview, int ms)

Arguments

previewpreview
The preview.
msint
Interval.

Returns

true on success.

Example

setElementPreviewRefresh(preview, 0)

See also