Table of Contents

Method AddCreateInputRequest

Namespace
OBSStudioClient.Messages
Assembly
OBSClient.dll

AddCreateInputRequest(SceneRef, string, string, Dictionary<string, object>?, bool?, Guid?)

Adds a CreateInput request to the batch.

public void AddCreateInputRequest(SceneRef scene, string inputName, string inputKind, Dictionary<string, object>? inputSettings = null, bool? sceneItemEnabled = null, Guid? canvasUuid = null)

Parameters

scene SceneRef

The scene to add the input to as a scene item, by name or by UUID.

inputName string

Name of the new input to created.

inputKind string

The kind of input to be created.

inputSettings Dictionary<string, object>

Settings object to initialize the input with. If omitted: Default settings used.

sceneItemEnabled bool?

Whether to set the created scene item to enabled or disabled. If omitted: True.

canvasUuid Guid?

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

Remarks

Creates a new input, adding it as a scene item to the specified scene.