Skip to main content

UBookMenuAnimInstance

Properties

Property NameTypeAccessDescription
BookMenuActorABookMenuActorBlueprintReadOnlyThe Owning Book Menu Actor 
PageSectionsTMap<int32,FPageSectionDataStruct>BlueprintReadOnlyList of all available Page Sections of the current book
PageTextureAUTextureRenderTarget2DBlueprintReadWriteTexture Render Target of the page one. Left side.
PageTextureBUTextureRenderTarget2DBlueprintReadWriteTexture Render Target of the page two. Right side.
PageTextureCUTextureRenderTarget2DBlueprintReadWriteTexture Render Target of the page three. Backside of page two.
PageTextureDUTextureRenderTarget2DBlueprintReadWriteTexture Render Target of the page four. Backside of page one.
MaterialPageAUMaterialInstanceDynamicBlueprintReadWriteDynamic Material Instance of page one. Must have a Texture Parameter called BC
MaterialPageBUMaterialInstanceDynamicBlueprintReadWriteDynamic Material Instance of page two. Must have a Texture Parameter called BC
MaterialPageCUMaterialInstanceDynamicBlueprintReadWriteDynamic Material Instance of page three. Must have a Texture Parameter called BC
MaterialPageDUMaterialInstanceDynamicBlueprintReadWriteDynamic Material Instance of page four. Must have a Texture Parameter called BC
MaterialCoverUMaterialInstanceDynamicBlueprintReadWriteDynamic Material Instance of The Cover.
PageSectionAIndexint32BlueprintReadOnlyPage Section Index for Pages one and two
PageSectionBIndexint32BlueprintReadOnlyPage Section Index for Pages three and four
DefaultPageSectionFPageSectionDataStructBlueprintReadOnlyThe Default Page Section in case there is no defined page section.
CurrentPageSectionIndexint32BlueprintReadOnlyThe Current Page Section Index to be displayed on page one and two
LastPageSectionIndexint32BlueprintReadWriteThe previous Page Section Index. Used to detect Changes of the Page Sections.
CurrentPageIndexint32BlueprintReadOnlyThe current Page the Interaction point on. Can be either the Left or the Right Page.
LastPageIndexint32BlueprintReadWriteThe previous Page the Interaction pointed on. Used to detect Changes of the active page.
PendingPageSectionIndexint32BlueprintReadOnlyThe Page Section Index that is pending while switching pages. 
DrawSizeFVector2DBlueprintReadOnlyThe Draw Size of the render targets. Must match the Widget Component Draw Size of the Book Interaction Actor.
bBookIsOpenboolEditAnywhere, BlueprintReadOnlyIndicates if the book is or shall be in an opened state
bBookShouldOpenboolBlueprintReadWriteIndicates if the book should open
bBookShouldCloseboolBlueprintReadWriteIndicates if the book should close

Functions

Set Page Sections


Sets or replaces the current list of Page sections

PinDirectionTypeDescription
InPageSectionsInputTArray<FPageSectionDataStruct>List of Page Sections to be set.


Init


Method to Initialize the Animation Instance and set configurations such as Book Data.

PinDirectionTypeDescription
InDataInputUBookMenuDataThe Book Menu Data
InBookMenuActorInoutABookMenuActorThe Book Menu Actor


Set Widget Component


Sets the Widget Component

PinDirectionTypeDescription
InWidgetComponentInputUWidgetComponentThe Widget Component from the Book Menu Interaction Actor


Jump to Page Section


Determines if a forward or backward page turn need to be performed based on the current page section index.

PinDirectionTypeDescription
SectionIndexInputint32the index of the Page Section to be displayed


Open Book At


If the book is closed, this triggers the open book animation and upfront sets the correct section to display.

PinDirectionTypeDescription
SectionIndexInputint32The Page Section Index to be displayed while opening the book


Close Book


Triggers the Close Book animation


Play Page Turn Forward Anim


34yv0-ma Method to be overwritten in the Anim Blueprint. Shall start the Page Turn forward animation.


Play Page Turn Reverse Anim


Method to be overwritten in the Anim Blueprint. Shall start the Page Turn backward animation.


Play Open Book Anim


5kdaq6c5 Method to be overwritten in the Anim Blueprint. Shall start the Open Book animation.


Play Close Book Anim


Method to be overwritten in the Anim Blueprint. Shall start the Close Book animation.


Play Idle Book Anim


Method to be overwritten in the Anim Blueprint. Shall start the Idle animation.


On Page Turn Anim End


If the book is closed, this triggers the open book animation and upfront sets the correct section to display.

PinDirectionTypeDescription
IsTurnForwardInputboolIndicates if a page forward (true) or a page backward (false) animation was executed.


On Book Open Anim End


Method to be called at the end of the Open Book Animation. You want to use Anim Notifies to find out when to call this Method.


On Book Close Anim End


Method to be called at the end of the Close Book Animation. You want to use Anim Notifies to find out when to call this Method.


On Book Idle Anim End


Method to be called at the end of the Idle Book Animation. e.g. to restart the Idle animation. You want to use Anim Notifies to find out when to call this Method.


On Paused


Called when the Anim Blueprint gets Paused to do some "pausing" stuff in the Blueprint


On Resumed


Called when the Anim Blueprint gets Resumed to do some "resuming" stuff in the Blueprint