Class RectTransformSink
A RectTransform-based view sink.
Inheritance
System.Object
MediaSink<IVideoOutput, IVideoOutputCollection, IVideoInput, VideoSink, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
ViewSink<RectTransform>
RectTransformSink
Implements
IViewSink<RectTransform>
Inherited Members
Namespace: FM.LiveSwitch.Unity
Assembly: FM.LiveSwitch.Unity.dll
Syntax
public class RectTransformSink : ViewSink<RectTransform>, IVideoInput, IMediaInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement, IViewSink<RectTransform>
Constructors
RectTransformSink()
Initializes a new instance of the RectTransformSink class.
Declaration
public RectTransformSink()
RectTransformSink(VideoFormat)
Initializes a new instance of the RectTransformSink class.
Declaration
public RectTransformSink(VideoFormat inputFormat)
Parameters
Type | Name | Description |
---|---|---|
VideoFormat | inputFormat |
Properties
GameObject
Gets the game object.
Declaration
public GameObject GameObject { get; }
Property Value
Type | Description |
---|---|
GameObject |
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
FM.LiveSwitch.MediaSink<FM.LiveSwitch.IVideoOutput, FM.LiveSwitch.IVideoOutputCollection, FM.LiveSwitch.IVideoInput, FM.LiveSwitch.VideoSink, FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat>.Label
Texture
Gets the texture.
Declaration
public Texture2D Texture { get; }
Property Value
Type | Description |
---|---|
Texture2D |
TextureLinear
Gets or sets a value indicating whether linear is enabled.
Declaration
public bool TextureLinear { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
TextureMipChain
Gets or sets a value indicating whether mipChain is enabled.
Declaration
public bool TextureMipChain { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
View
Gets the view.
Declaration
public override RectTransform View { get; }
Property Value
Type | Description |
---|---|
RectTransform |
Overrides
FM.LiveSwitch.ViewSink<RectTransform>.View
ViewMirror
Gets or sets a value indicating whether the view is mirrored.
Declaration
public override bool ViewMirror { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
FM.LiveSwitch.ViewSink<RectTransform>.ViewMirror
ViewScale
Gets or sets the view scale.
Declaration
public override LayoutScale ViewScale { get; set; }
Property Value
Type | Description |
---|---|
LayoutScale |
Overrides
FM.LiveSwitch.ViewSink<RectTransform>.ViewScale
Methods
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
Overrides
FM.LiveSwitch.ViewSink<RectTransform>.DoDestroy()
RenderBuffer(VideoBuffer)
Renders the buffer.
Declaration
protected override void RenderBuffer(VideoBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | inputBuffer | The input buffer. |
Overrides
FM.LiveSwitch.ViewSink<RectTransform>.RenderBuffer(FM.LiveSwitch.VideoBuffer)