跳至主要内容

Video Player Source Component

Overview

This component creates a UI element from a Unity VideoPlayer. This allows non-UI rendering to have UIFX filters applied to them.

Properties

Component Screenshot

Property                            Type    Range    DefaultDescription
Video PlayerVidePlayernullThe VideoPlayer to render.
MaterialMaterialnullThe override material to use for rendering this UI Graphic.
ColorColorWhiteThe color to tint (multiply) this Graphic when rendering.
Raycast TargetBooleanTrueWhether or not this Graphic should support the raycaster (picking).
MaskableBooleanTrueWhether or not this Graphic should support the masking components.

Usage

Add this component to any UI GameObject that doesn't already contain a Graphic component. Assign the VideoPlayer to be displayed.