StreamSource
Represents a stream source.
Inherits UnityEngine.MonoBehaviour class.
Constructors
Name | Description |
---|---|
StreamSource() | Creates a new StreamSource object. |
Properties
Name | Type | Description |
---|---|---|
Timestamp | DateTime | Virtual. The stream timestamp. |
Pixels | Virtual. The pixel color data for a mipmap level as Color32 structs. | |
Width | int | Virtual. The width of the WebcamTexture in pixels. |
Height | int | Virtual. The height of the WebcamTexture in pixels. |
Rotation | int | Virtual. The frame rotation |
Example
The example shows how to manage a stream with the StreamSource
class.
Create a StreamSource
To create a StreamSource
, add a field for Unity to serialize.
Get stream information
Get the stream's timestamp, pixels, width, height and rotation.
Last updated