Visual image that supports transition effects through material.
More...
#include <BackgroundVisualImage.h>
|
virtual TSharedRef< SWidget > | RebuildWidget () override |
|
virtual void | SynchronizeProperties () override |
| Keeps C++ and derived blueprint classes synced in the widget designer.
|
|
TSharedPtr< FStreamableHandle > | AsyncLoadFlipbook (TSoftObjectPtr< UPaperFlipbook > FlipbookToLoad, FStreamableDelegate AfterLoadDelegate, TAsyncLoadPriority Priority) |
| Asynchronously stream soft flipbook in the memory.
|
|
const UPaperFlipbook * | ToFlipbook (TAttribute< UPaperFlipbook * > InFlipbook) const |
| Converts flipbook attribute to the flipbook pointer.
|
|
| PROPERTY_BINDING_IMPLEMENTATION (FSlateColor, ColorAndOpacity) |
|
| UVisualImageBase (const FObjectInitializer &ObjectInitializer) |
| Abstract, cannot be instantiated.
|
|
|
TObjectPtr< UPaperFlipbook > | Flipbook |
| Paper flipbook to visualize.
|
|
FGetPaperFlipbook | FlipbookDelegate |
| Delegate for property binding of the flipbook.
|
|
FLinearColor | ColorAndOpacity |
| Color and opacity of the flipbook.
|
|
FGetLinearColor | ColorAndOpacityDelegate |
| Delegate for property binding of the color and opacity.
|
|
FVector2D | DesiredScale |
| Scale of the flipbook.
|
|
FVector2D | MirrorScale |
| Determines the orientation of the sprite on both axes.
|
|
bool | bAnimate |
| Decides whether or not flipbook's animation sequence should be played.
|
|
int32 | FrameIndex |
| Index of the flipbook's frame that must be rendered.
|
|
TSharedPtr< FStreamableHandle > | FlipbookHandle |
| Handle to the streamable flipbook.
|
|
TSharedPtr< SVisualImage > | VisualImageSlate |
| Underlying slate visual image.
|
|
Visual image that supports transition effects through material.
◆ IsTransitioning()
bool UBackgroundVisualImage::IsTransitioning |
( |
| ) |
const |
- Returns
false
when no transition is active.
◆ PlayTransition() [1/2]
void UBackgroundVisualImage::PlayTransition |
( |
UPaperFlipbook * | Target, |
|
|
UMaterialInstanceDynamic * | Transition, |
|
|
bool | bShouldAnimateTarget ) |
Plays transition from UVisualImage::Flipbook to UBackgroundVisualImage::Target.
- Parameters
-
Target | New flipbook that would be displayed by this image after transition ends |
Transition | Material that serves as transition effect |
bShouldAnimateTarget | Whether or not UBackgroundVisualImage::Target flipbook should be animated. For not animated flipbooks, will display first frame of the flipbook. |
◆ PlayTransition() [2/2]
void UBackgroundVisualImage::PlayTransition |
( |
UPaperFlipbook * | Target, |
|
|
UMaterialInstanceDynamic * | Transition, |
|
|
int32 | FrameIndex ) |
◆ RebuildWidget()
TSharedRef< SWidget > UBackgroundVisualImage::RebuildWidget |
( |
| ) |
|
|
overrideprotectedvirtual |
- Returns
- underlying slate widget
Reimplemented from UVisualImage.
◆ ReleaseSlateResources()
void UBackgroundVisualImage::ReleaseSlateResources |
( |
bool | bReleaseChildren | ) |
|
|
overridevirtual |
Releases memory allocated for slate widgets.
- Parameters
-
bReleaseChildren | should memory of child widgets be released |
Reimplemented from UVisualImage.
◆ StopTransition()
void UBackgroundVisualImage::StopTransition |
( |
| ) |
|
Stops ongoing transition.
Has no effect when called during stopped transition.
The documentation for this class was generated from the following files:
- BackgroundVisualImage.h
- BackgroundVisualImage.cpp