Skip to content

Class · inherits GuiObject

VideoDisplay

Official docs ↗

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 the VideoDisplay.

    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.Stretch which will simply stretch/compact the video texture dimensions so it fits the UI element's space exactly.

  • TileSize: UDim2Sets the tiling size of the VideoDisplay.

    This property sets the tiling size of the VideoDisplay with a default of Datatype.UDim2.new(1, 0, 1, 0). Tiling starts at the top-left corner of the video. This property is only active if the ScaleType for the VideoDisplay is set to ScaleType.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 to 0, 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 0 is completely opaque, and a value of 1 is completely transparent (invisible).

Methods 3

Events 1

  • WiringChangedVideoDisplay.WiringChanged:Connect(function(connected, pin, wire, instance))Fires when another instance is connected to or disconnected from the VideoDisplay via a Wire.

    Fires after a Wire becomes connected or disconnected, and that Wire is now or was previously connected to a pin on the VideoDisplay and 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.