Class · inherits GuiObject
VideoDisplay
A GUI object that displays video content from a connected VideoPlayer.
About VideoDisplay
A VideoDisplay is a GUI object that displays video content from a
VideoPlayer connected via a Wire. It functions similarly to a
ImageLabel but is designed for video playback.
Properties 7
ResampleMode
: ResamplerModeSelects the texture resampling mode for theVideoDisplay.Determines how the video looks when it is scaled. By default, the video smooths out texturing when displayed on the screen larger or smaller than its size in texture memory. When set to
Enum.ResamplerMode.Pixelated, the video preserves the sharp edges of pixels.ScaleType
: ScaleTypeDetermines how a video will scale if displayed in a UI element whose aspect ratio differs from the source video.Determines how a video texture is rendered when the UI element's aspect ratio differs from the source video's aspect ratio.
By default, this property is
ScaleType.Stretchwhich will simply stretch/compact the video texture dimensions so it fits the UI element's space exactly.TileSize
: UDim2Sets the tiling size of theVideoDisplay.This property sets the tiling size of the
VideoDisplaywith a default ofDatatype.UDim2.new(1, 0, 1, 0). Tiling starts at the top-left corner of the video. This property is only active if theScaleTypefor theVideoDisplayis set toScaleType.Tile.VideoColor3
: Color3Determines how a rendered video will be colorized.Determines how a video is colorized. When set to white, no colorization occurs. This property is useful for reusing video assets.
VideoRectOffset
: Vector2The offset in pixels of the sub-area of a video to be displayed.Allows the partial display of a video in conjunction with
VideoRectSize. This property determines the pixel offset (from the top-left) of the video area to be displayed.VideoRectSize
: Vector2Determines the size in pixels of the sub-area of a video to be displayed.Allows the partial display of a video in conjunction with
VideoRectOffset. This property determines the pixel size of the video area to be displayed. If either dimension is set to0, the entire video is displayed instead.VideoTransparency
: floatDetermines the transparency of the rendered video.Determines the alpha of a UI element's rendered video texture. A value of
0is completely opaque, and a value of1is completely transparent (invisible).
Methods 3
GetConnectedWires
(pin: string) → List<Wire>Returns an array ofWiresthat are connected to the specified pin.Returns an array of
Wiresthat are connected to the specified pin.VideoDisplayhas one "Input" pin.GetInputPins
() → ArrayGets the list of pins thatWirecan use inWire.TargetNameto connect to this instance via itsWire.TargetInstanceproperty.Gets the list of pins that
Wirecan use inWire.TargetNameto connect to this instance via itsWire.TargetInstanceproperty.For
VideoDisplay, this isInputonly.GetOutputPins
() → ArrayGets the list of pins thatWirecan use inWire.SourceNameto connect to this instance via itsWire.SourceInstanceproperty.Gets the list of pins that
Wirecan use inWire.SourceNameto connect to this instance via itsWire.SourceInstanceproperty.For
VideoDisplay, there are none.
Events 1
WiringChanged
VideoDisplay.WiringChanged:Connect(function(connected, pin, wire, instance))Fires when another instance is connected to or disconnected from theVideoDisplayvia aWire.Fires after a
Wirebecomes connected or disconnected, and thatWireis now or was previously connected to a pin on theVideoDisplayand to some other wirable instance.
VideoDisplay also has every member of GuiObject. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.