hello
New Member
Posts: 1
|
Post by hello on Dec 25, 2023 2:31:01 GMT
Im new to the asset.
I want to make a book that dynamically add text when game progresses.
So basically it would make a new page when previous page is full of text/pictures.
does this asset already have similar function? I looked though the user manual but havent look at the code yet.
if no, whats the best approach to do make this function?
Thanks
|
|
|
Post by echo17 on Dec 25, 2023 11:34:15 GMT
The pages in EndlessBook are just materials that can be modified using the AddPageData (to add a material to the end), InsertPageData (to add a material somewhere in the middle), SetPageData (to update a material), and RemovePageData (to remove a material) methods of the EndlessBook class. Your materials can have any number of textures associated with them, depending on what shader they are using. See pages 11-12 of the user manual for more information. One way to create a texture dynamically is to set up a camera that renders a sub-scene. The camera's output can be a render texture that can then be used in the page material. The sub-scene can contain any number of items in it, including 3D objects and other elements like text. Here's a web search to help you get started: link
|
|