Editor Scripting API
Lens Scripting API
Guide Docs
Editor Scripting
LensStudio:Ui
TabBar
Class TabBar
Hierarchy (
View Summary
,
Expand
)
Widget
TabBar
Index
Constructors
constructor
Properties
auto
Fill
Background
background
Role
context
Menu
Policy
current
Index
device
Pixel
Ratio
enabled
font
Role
foreground
Role
height
hidden
is
Null
layout
on
Current
Change
on
Hide
on
Resize
on
Show
tool
Tip
visible
width
window
Title
Methods
activate
Window
add
Tab
adjust
Size
block
Signals
create
delete
Later
get
Type
Name
grab
is
Of
Type
is
Same
move
raise
resize
set
Contents
Margins
set
Fixed
Height
set
Fixed
Width
set
Maximum
Height
set
Maximum
Width
set
Minimum
Height
set
Minimum
Width
set
Size
Policy
set
Tab
Icon
Constructors
Protected
constructor
new
TabBar
()
:
TabBar
Returns
TabBar
Properties
auto
Fill
Background
autoFillBackground
:
boolean
background
Role
backgroundRole
:
ColorRole
context
Menu
Policy
contextMenuPolicy
:
ContextMenuPolicy
current
Index
currentIndex
:
number
Readonly
device
Pixel
Ratio
devicePixelRatio
:
number
enabled
enabled
:
boolean
font
Role
fontRole
:
FontRole
foreground
Role
foregroundRole
:
ColorRole
Readonly
height
height
:
number
hidden
hidden
:
boolean
Readonly
is
Null
isNull
:
boolean
layout
layout
:
Layout
Readonly
on
Current
Change
onCurrentChange
:
signal1
<
number
,
void
>
Readonly
on
Hide
onHide
:
signal0
<
void
>
Readonly
on
Resize
onResize
:
signal2
<
number
,
number
,
void
>
Readonly
on
Show
onShow
:
signal0
<
void
>
tool
Tip
toolTip
:
string
visible
visible
:
boolean
Readonly
width
width
:
number
window
Title
windowTitle
:
string
Methods
activate
Window
activateWindow
()
:
void
Returns
void
add
Tab
addTab
(
text
:
string
)
:
void
Parameters
text
:
string
Returns
void
adjust
Size
adjustSize
()
:
void
Returns
void
block
Signals
blockSignals
(
blocked
:
boolean
)
:
void
Parameters
blocked
:
boolean
Returns
void
Static
create
create
(
widget
:
Widget
)
:
TabBar
Parameters
widget
:
Widget
Returns
TabBar
delete
Later
deleteLater
()
:
void
Returns
void
get
Type
Name
getTypeName
()
:
string
Returns
string
grab
grab
()
:
Pixmap
Returns
Pixmap
is
Of
Type
isOfType
(
type
:
string
)
:
boolean
Parameters
type
:
string
Returns
boolean
is
Same
isSame
(
other
:
ScriptObject
)
:
boolean
Parameters
other
:
ScriptObject
Returns
boolean
move
move
(
ax
:
number
,
ay
:
number
)
:
void
Parameters
ax
:
number
ay
:
number
Returns
void
raise
raise
()
:
void
Returns
void
resize
resize
(
width
:
number
,
height
:
number
)
:
void
Parameters
width
:
number
height
:
number
Returns
void
set
Contents
Margins
setContentsMargins
(
left
:
number
,
top
:
number
,
right
:
number
,
bottom
:
number
,
)
:
void
Parameters
left
:
number
top
:
number
right
:
number
bottom
:
number
Returns
void
set
Fixed
Height
setFixedHeight
(
height
:
number
)
:
void
Parameters
height
:
number
Returns
void
set
Fixed
Width
setFixedWidth
(
width
:
number
)
:
void
Parameters
width
:
number
Returns
void
set
Maximum
Height
setMaximumHeight
(
height
:
number
)
:
void
Parameters
height
:
number
Returns
void
set
Maximum
Width
setMaximumWidth
(
width
:
number
)
:
void
Parameters
width
:
number
Returns
void
set
Minimum
Height
setMinimumHeight
(
height
:
number
)
:
void
Parameters
height
:
number
Returns
void
set
Minimum
Width
setMinimumWidth
(
width
:
number
)
:
void
Parameters
width
:
number
Returns
void
set
Size
Policy
setSizePolicy
(
horizontal
:
Policy
,
vertical
:
Policy
)
:
void
Parameters
horizontal
:
Policy
vertical
:
Policy
Returns
void
set
Tab
Icon
setTabIcon
(
index
:
number
,
icon
:
Icon
)
:
void
Parameters
index
:
number
icon
:
Icon
Returns
void
Settings
Member Visibility
Inherited
Private
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
auto
Fill
Background
background
Role
context
Menu
Policy
current
Index
device
Pixel
Ratio
enabled
font
Role
foreground
Role
height
hidden
is
Null
layout
on
Current
Change
on
Hide
on
Resize
on
Show
tool
Tip
visible
width
window
Title
Methods
activate
Window
add
Tab
adjust
Size
block
Signals
create
delete
Later
get
Type
Name
grab
is
Of
Type
is
Same
move
raise
resize
set
Contents
Margins
set
Fixed
Height
set
Fixed
Width
set
Maximum
Height
set
Maximum
Width
set
Minimum
Height
set
Minimum
Width
set
Size
Policy
set
Tab
Icon
Lens Scripting API
Guide Docs
Editor Scripting API
Full API List
Editor Scripting
Base64
BaseDescriptor
bvec4
clearInterval
clearTimeout
ComponentNameMap
console
Editor
Editor
Ai
Ai
Storage
Alignment
Horizontal
Vertical
AnimationClip
AnimationLayerBlendMode
AnimationLayerScaleMode
Assets
AnimationAsset
AntialiasingMode
AntialiasingQuality
Asset
BlendMode
BodyTracking3DAsset
ClearColorOption
CullMode
DepthBufferStrategy
DepthFunction
DeviceCameraTexture
FaceCropTexture
FaceMesh
FileMesh
FileTexture
FileTexture2DArray
FileTexture3D
FileTextureCubemap
FileTextureInfo
FileTextureInfo3D
FilteringMode
Font
FrustumCullMode
GaussianSplattingAsset
HairDataAsset
HandTracking3DAsset
HandTracking3DHandType
ImageMarker
JavaScriptAsset
Location
LocationMesh
LocationType
MarkerAsset
Material
MLAsset
MSAAStrategy
NativePackageDescriptor
Object3DAsset
ObjectOwner
ObjectPrefab
ObjectTrackingTexture
ObjectTrackingTextureType
Pass
PassInfo
Physics
Filter
LevelsetColliderAsset
Matter
WorldSettingsAsset
RemoteMLAsset
RenderMesh
RenderTarget
Sampler
Scene
ScriptAsset
ScriptTypes
Visibility
SegmentationTexture
SegmentationType
SetupScript
SnapcodeMarker
Texture
TextureParameter
Version
VertexAttribute
WrapMode
Axis
Buffer
Components
AnimationPlayer
BackgroundSettings
BarycentricVertex
BaseMeshVisual
Camera
CameraAspectPreset
CameraClearColor
CameraClearColor
Mode
CameraClearDepth
CameraClearDepth
Mode
CameraDepthBufferMode
CameraDeviceProperty
CameraOitLayers
CameraType
Canvas
CapitalizationOverride
ClipRangeType
ClothVisual
ClothVisual
BendMode
VertexBinding
Component
DecayType
DeviceTracking
DeviceTrackingMode
DropshadowSettings
EnvmapFromCameraMode
ExtrudeDirection
EyeColorVisual
EyeToRender
FaceInsetRegion
FaceInsetVisual
FaceMaskVisual
FaceStretchVisual
GaussianSplattingVisual
HairVisual
Head
HeadAttachmentPointType
HorizontalOverflow
Image
InteractionComponent
LightSource
LightType
LiquifyVisual
LocatedAtComponent
LookAtComponent
LookAtComponent
AimVectors
LookAtMode
WorldUpVector
ManipulateComponent
MarkerTrackingComponent
MaskingComponent
MaterialMeshVisual
MeshShadowMode
ObjectTracking
ObjectTracking3D
ObjectTracking3D
TrackingMode
ObjectTrackingType
OutlineSettings
Physics
BodyComponent
BodySetting
Box
Capsule
ColliderComponent
Cone
Constraint
ConstraintComponent
Cylinder
LevelSet
Mesh
Shape
Sphere
WorldComponent
PinToMesh
Orientation
PinToMeshComponent
PostEffectVisual
RectangleSetter
RenderLayerOwner
RenderMeshVisual
RetouchVisual
RotationOptions
ScreenRegionComponent
ScreenRegionType
ScreenTransform
ScreenTransformConstraints
ScriptComponent
Skin
SortingType
StretchMode
StretchPoint
SurfaceOptions
Text
Text3D
TextAdvancedLayout
TextFill
TextFillMode
TextFillTileZone
UnitType
VerticalOverflow
Visual
Compression
Compression
Zip
ContextAction
Dock
Dock
IDockManager
Icon
IContext
IGuard
IInterface
InterfaceId
IOverlayManager
IPlugin
IPluginComponent
Model
Model
AssetContext
AssetContext
Item
AssetImportMetadata
AssetImportMetadata
PackageIterate
AssetManager
BaseChangesStream
ChangesStream
DeviceType
Entity
EntityBaseType
EntityPrototypeData
EntityStructure
ImportResult
Layer
LayerId
Layers
LayerSet
LensActivationCamera
LensApplicability
Meta
MetaInfo
ObjectContext
PackageOption
Prefabable
Project
ResultType
SceneObject
Path
PlaybackMode
PluginSystem
Point
Rect
ScopedConnection
Shape
Size
Transform
Uuid
global
secureLocalStorage
IPanelPlugin
IPluginDescriptor
LensStudio:Analytics
LensStudio:App
env
version
LensStudio:AssetInstantiator
AssetInstantiator
Descriptor
IAssetInstantiator
LensStudio:AssetLibrary
Asset
AssetFilter
AssetListRequest
AssetListResponse
AssetListService
AssetListSuccess
AssetType
Environment
EnvironmentSetting
IAssetLibraryProvider
Pagination
Resource
ServiceError
Space
LensStudio:AssetUtils.js
addDefine
addGraphToMaterial
createMaterialFromGraph
findAsset
findOrCreateNativeAsset
findOrCreateNonNativeAsset
findOrCreateObjectTrackingTexture
findOrCreateScreenTexture
getResourceFile
importImageAsTexture
setupSamplerWrapMode
ShaderGraphType
LensStudio:ChatAssistant
LensStudio:CoreService
CoreService
Descriptor
LensStudio:DialogPlugin
Descriptor
DialogPlugin
LensStudio:EditorPlugin
Descriptor
EditorPlugin
LensStudio:FileSystem
copyDir
CopyDirOptions
copyFile
createDir
CreateDirOptions
exists
isDirectory
isFile
readBytes
readDir
ReadDirOptions
readFile
realPath
remove
rename
size
TempDir
Watcher
writeFile
LensStudio:GeneralUtils.js
promisify
LensStudio:GuiService
Descriptor
GuiService
IGuiService
LensStudio:HierarchyUtils.js
CreateOptions
createOrthoCameraOnObject
createPerspectiveCameraOnObject
findInAncestorsByName
findInAncestorsByType
findInDescendantsByName
findInDescendantsByType
findInRootObjectsByName
findInRootObjectsByType
findNearestCameraInAncestors
findOrCreateCameraObject
findOrCreateChildWithName
findOrCreateOrthoCameraForObject
getFirstCameraInScene
getNearestOrFirstCamera
getOrCreateCanvas
getOrCreateScreenRegion
SearchOptions
LensStudio:LcaUtils.js
attachLCAHeader
LensStudio:LensBasedEditorView
LensStudio:ModelUi
EntityReferencePickerLine
LensStudio:MultimediaWidgets
LensStudio:Network
Address
BaseServer
BaseSocket
FormData
HttpReply
HttpRequest
HttpRequest
Method
HttpResponse
performAuthorizedHttpRequest
performHttpRequest
performHttpRequestWithReply
TcpServer
TcpSocket
LensStudio:OverlayPlugin
Descriptor
OverlayPlugin
LensStudio:PanelPlugin
Descriptor
PanelPlugin
LensStudio:PluginVerifier
Descriptor
PluginVerifier
LensStudio:Preset
Descriptor
Preset
LensStudio:ProjectSettingsPlugin
Descriptor
ProjectSettingsPlugin
LensStudio:RemoteServiceModule
performApiRequest
RemoteApiRequest
RemoteApiResponse
RemoteApiResponse
LinkedResource
LensStudio:Serialization
IReader
IWriter
Yaml
LensStudio:Shell
openUrl
showItemInFolder
LensStudio:Subprocess
ExitStatus
ProcessError
ProcessState
spawn
SpawnOptions
spawnSync
SpawnSyncResult
Subprocess
Writable
LensStudio:SysInfo
productType
LensStudio:Ui
AbstractButton
Action
Alignment
ArrowPosition
AspectRatioMode
BackgroundRole
BoxLayout
CalloutFrame
CheckBox
CheckState
ClearLayoutBehavior
ClickableLabel
CollapsiblePanel
Color
ColorButton
ColorRole
ComboBox
ContextMenuPolicy
Dialog
Dialogs
Options
Params
Direction
DockState
DoubleSpinBox
FontRole
getUrlString
GridLayout
Gui
IconMode
IDialogs
IGui
ImageView
IWorkspaceManager
Label
Layout
LineEdit
Menu
Movie
MovieView
Orientation
OverflowToolBar
Pixmap
PopupWithArrow
ProgressBar
ProgressIndicator
ProjectSettings
Error
NoIssue
Warning
PushButton
RadioButton
RadioButtonGroup
Rect
SearchLineEdit
Section
Separator
Shadow
Size
SizePolicy
Policy
Sizes
Slider
SpinBox
StackedLayout
StackedWidget
StackingMode
StatusIndicator
TabBar
TextEdit
ToolbarConfig
ToolbarPosition
ToolbarSettings
ToolButton
TransformationMode
VerticalScrollArea
WebEngineView
Widget
Workspaces
Descriptor
Metadata
PresetHandle
Workspace
LensStudio:UriHandlerPlugin
Descriptor
UriHandlerPlugin
LensStudio:WebSocket
WebSocket
WebSocketServer
mat3
mat3
identity
makeFromRotation
zero
quat
quat
angleAxis
angleBetween
fromEulerAngles
fromEulerVec
fromRotationMat
lerp
lookAt
quatIdentity
rotationFromTo
slerp
ScriptObject
SecureLocalStorage
setInterval
setTimeout
signal0
signal1
signal2
signal3
signal4
signal5
Task
TextEncoder
Timeout
TypeScriptAsset
vec2
vec2
down
left
lerp
max
min
one
randomDirection
right
up
zero
vec3
vec3
back
down
forward
left
lerp
max
min
one
orthonormalize
randomDirection
right
slerp
up
zero
vec4
vec4
lerp
max
min
one
zero
M
M
N
E
P
V
F
C
I
C
P
M
F
P
C
P
T
T
A
A
A
T
R