跳至主要内容

Graphic Update Component

Overview

This is a utility component which forces the Graphic to update which is useful when the Graphic contains a dynamic RenderTexture, WebCamTexture or other dynamic content that needs the filter components to render when they change.

Properties

Component Screenshot

Property                            Type    Range    DefaultDescription
Update ModeEnumEveryFrameWhen to force the update. Options are:
Manually - scripting must be used by calling ForceUpdate().
EveryFrame - Update happens every frame.
WebCamTexture - Uses the WebCamTexture callback to force update whenever there is a new frame. Use the WebCamTexture property to set the the webcam.
.• Time - the number of seconds elapsed between updates.
.• Unscaled Time - the numnber of seoncds elapsed between updates but not affected by Time.timeScale.
Time IntervalFloat[0..inf]1In Time and Unscaled Time update modes this forces an update after this number of seconds have elapsed.

Usage

Add this component to any UI GameObject that contains a Graphic component.