Method TryGet
- Namespace
- OBSStudioClient.Model
- Assembly
- OBSClient.dll
TryGet(string, out ObsSceneItem)
Gets the scene item whose source has a name, if there is exactly one.
public bool TryGet(string sourceName, out ObsSceneItem item)
Parameters
sourceNamestringThe name of the source.
itemObsSceneItemThe scene item.
Returns
- bool
Whether there is one scene item for the name.
Exceptions
- ObsAmbiguousNameException
More than one scene item shows it.