Method SetSceneName
- Namespace
- OBSStudioClient
- Assembly
- OBSClient.dll
SetSceneName(SceneRef, string, Guid?, CancellationToken)
Sets the name of a scene (rename).
public Task SetSceneName(SceneRef scene, string newSceneName, Guid? canvasUuid = null, CancellationToken cancellationToken = default)
Parameters
sceneSceneRefThe scene to be renamed, by name or by UUID.
newSceneNamestringNew name for the scene.
canvasUuidGuid?UUID of the canvas the scene is in, if the scene is given by name.
cancellationTokenCancellationTokenA 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.