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. Will be cloned internally.


Get Book Menu Data


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

Pin Direction Type Description
Return Value Output UBookMenuData A clone of the current Book Menu Data


Get Current Page Section Index


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

Pin Direction Type Description
Return Value Output Integer the current page section index; -1 in case Anim Instance is not defined


Get Pending Page Section Index


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

Pin Direction Type Description
Return Value Output Integer the pending page section index; -1 in case Anim Instance is not defined


Get Current Page Index


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

Pin Direction Type Description
Return Value Output Integer the current page index 0 = Left ; 1 = Right
returns -1 in case Anim Instance is not defined


Get Book isIs Open


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

Pin Direction Type Description
Return Value Output IntegerBoolean true if the book is in open state; false if the book is in closed state


Get Book Should Open


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

PinDirectionTypeDescription
Return ValueOutputBooleantrue if the book should be in open state


Get Book Should Close


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

PinDirectionTypeDescription
Return ValueOutputBooleantrue if the book should be in closed state


Get Page Sections


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

PinDirectionTypeDescription
Return ValueOutputTMap<int32,FPageSectionDataStruct>an Map of the page sections of the book


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


Register Interaction Component


Method to register a Book Menu Interaction Component

PinDirectionTypeDescription
In Interaction ComponentInputUBookMenuInteractionComponentThe Book Menu Interaction Component to be registered. 


Register Interaction Actor


Method to register a Book Menu Interaction Component

PinDirectionTypeDescription
In Interaction ActorInputUBookMenuInteractionActorThe Book Menu Interaction Actor to be registered. 


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


Set Keyboard Focus



PinDirectionTypeDescription
In Page IndexInputInteger

The page index to set the focus to

Debug TraceInputbool

Shows a debug trace if true.

SuccessOutputEXEC

Indicates if the Interaction was executed successfully

FailedOutputEXEC

Indicates if the Interaction was not executed successfully

Return ValueOutputbool

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