Table of Contents

Method SetSceneItemLocked

Namespace
OBSStudioClient
Assembly
OBSClient.dll

SetSceneItemLocked(SceneRef, int, bool, Guid?, CancellationToken)

Sets the lock state of a scene item.

public Task SetSceneItemLocked(SceneRef scene, int sceneItemId, bool sceneItemLocked, Guid? canvasUuid = null, CancellationToken cancellationToken = default)

Parameters

scene SceneRef

The scene the item is in, by name or by UUID.

sceneItemId int

Numeric ID of the scene item. Restrictions: >= 0.

sceneItemLocked bool

New lock state of the scene item.

canvasUuid Guid?

UUID of the canvas the scene is in, if the scene is given by name.

cancellationToken CancellationToken

A token that ends the wait for the response, which makes the method throw an OperationCanceledException. A request that was already sent is not undone: OBS Studio may still carry it out.

Returns

Task

Remarks

Scenes and Group.