Method CreateScene
- Namespace
- OBSStudioClient
- Assembly
- OBSClient.dll
CreateScene(string, Guid?, CancellationToken)
Creates a new scene in OBS.
public Task<Guid> CreateScene(string sceneName, Guid? canvasUuid = null, CancellationToken cancellationToken = default)
Parameters
sceneNamestringName for the new scene.
canvasUuidGuid?UUID of the canvas to create the new scene in. Leave default to assume main canvas.
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.