Skip to main content

ABookMenuActor

Properties

Property Name Type Access Description
BookMenuData UBookMenuData EditAnywhere Default Configuration Data for the Book, containing information such as the the widgets to be displayed as book pages
SkeletalMeshComponent USkeletalMeshComponent VisibleAnywhere, BlueprintReadOnly The animated book mesh
StaticMeshComponent UStaticMeshComponent VisibleAnywhere, BlueprintReadOnly A dummy static mesh component for doing traces. Needed to determine the UV coordinates based on trace hit results. The static mesh will be hidden in game. Must represent the book in a open state.
LeftPageCollision UBoxComponent VisibleAnywhere, BlueprintReadOnly Collision box used to determine which page of the book was traced 
RightPageCollision UBoxComponent VisibleAnywhere, BlueprintReadOnly Collision box used to determine which page of the book was traced 
InteractionActor ABookMenuInteractionActor EditAnywhere, BlueprintReadOnly Reference to the actor that redirects the interaction to a widget interaction component

Functions

Set Book Menu Data


Can be used to set the book menu data after begin play, during the game

Pin Direction Type Description
In Book Menu Data Input UBookMenuData The new Book Menu Data

 

Get Interaction Actor


Returns the reference to the Book Menu Interaction Actor

Pin Direction Type Description
Return Value Output ABookMenuInteractionActor Returns the reference to the Book Menu Interaction Actor


Set Interaction Actor


Registers the Book Menu Interaction Actor to be used for Interaction with the Book

Pin Direction Type Description
In Interaction Actor Input ABookMenuInteractionActor The Book Menu Interaction Actor to be set

 

Jump to Page Section


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

Pin Direction Type Description
Section Index Input int32 The 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.

Pin Direction Type Description
Section Index Input int32

The Page Section Index to be displayed while opening the book

 

Close Book


Triggers the Close Book animation

 

Pause Book Update


Pauses the animation update of the anim instance without closing the book first.


Resume Book Update


Resume the animation update of the anim instance. Will only resume if the book is already open. Closed books don't need to consume render time


Interact


Performs a Line Trace based on the Start and End Parameters and moves the Widget Interaction pointer of the Book Menu Interaction Actor if it is set. Also tells the Animation Blueprint which page was traced to.

Pin Direction Type Description
Start Input FVector

Start of the Line Trace

End Input FVector

End of the Line Trace

Debug Trace Input bool

Shows a debug trace if true.

Trace Channel Input ECollisionChannel

The Collision Channel to be used for the line trace.

Success Output EXEC

Indicates if the Interaction was executed successfully

Failed Output EXEC

Indicates if the Interaction was not executed successfully

Return Value Output bool

returns tru if the operation was successful. Otherwise false


Get Anim Instance


Returns the Animation Instance of the Animation Blueprint

Pin Direction Type Description
Return Value Output UBookMenuAnimInstance


 

Get Left Page Collision Box


Returns the Collision Box of the left page

Pin Direction Type Description
Return Value Output UBoxComponent  

 

Get Right Page Collision Box


Returns the Collision Box of the right page

Pin Direction Type Description
Return Value Output UBoxComponent  

 

Get Static Mesh Component


Returns the Static Mesh Component

Pin Direction Type Description
Return Value Output UStaticMeshComponent