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
Property | Type | Range | Default | Description |
---|---|---|---|---|
Update Mode | Enum | EveryFrame | When 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 Interval | Float | [0..inf] | 1 | In 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.