Adding Mesh Content

When adding content to your pages sometimes textures alone is just not enough so a system was added to MegaBook that allows you to add any mesh based objects to your book pages, you can have as many different objects per page as you like and they can all have multiple materials, the system will merge all the data into the page mesh so it will animate and turn nicely.

complexpage
To add mesh data to your book you just need to layout the meshes you want using any objects you like as long as they expose a mesh, so you can’t for example use a normal Unity Text object but you could use say Text Mesh Pro. If you have multiple objects per page then you will need to make all the objects a child of one object so that the system will now to add the parent and any children. In the image above you can see 4 pages worth of content have been created, each one using multiple objects. The hierarchy on the right shows the actual objects have been grouped under a page object named to show which page it will be in the book. If your meshes make use of vertex colors at all then make sure you have the ‘Allow Color’ option checked in the MegaBook params.

When you have your content prepared make an empty game object and add the MBComplexPage script to it, you will now see an Add Page button, click this for how ever many pages of content you want to add to the book. In this case we have 4 pages so the button will be clicked 4 times. Now for each page you can select the object that will be added so here we pick the four parent objects of the content we created. Once that has been done you just need to select your book and click the Rebuild button, you should now see the mesh data has been added to your book for you.

complexpageparams

Params

Param guide for the complex page script.

Add Page

Click this to add more pages to the content list.

Page

This allows you to select the page object to use for the this pages content.

Delete

You can delete any page by clicking the delete button.

U

Move the page up the list.

D

Move the page down the list.

Video Showing the Complex Page System

ytcomplex

You must be logged in to post a comment.