跳至主要内容

Camera Source Component

Overview

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

WebGL Demo

Properties

Component Screenshot

Property                            Type    Range    DefaultDescription
CameraCameranullThe camera 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.