Unity Book Viewer Setup Guide | free unity asset | Unity Book Asset

How to Add Head Tracking to Any Character in Unity (Simple & Universal Method)
August 4, 2026
Neon Sketch Outline Effect in Unity URP
August 5, 2026
How to Add Head Tracking to Any Character in Unity (Simple & Universal Method)
August 4, 2026
Neon Sketch Outline Effect in Unity URP
August 5, 2026

Unity Book Viewer Setup Guide | free unity asset | Unity Book Asset

Welcome to the Unity Book Viewer System documentation. This package provides an atmospheric, performance-optimized, and easy-to-use book system for both page flipping and text reading, powered by TextMeshPro.

🚀 Quick Start: Adding Your Own Stories

Now Follow these steps to add custom stories and connect them to the book-selection menu.

1- Setting Up Portrait Resolution in Unity Game View

Unity projects commonly open in Landscape mode by default. To preview and design the interface for portrait screens, add a custom portrait resolution to the Game window.
1. Open the Game window, usually located next to the Scene window.
2. Click the Resolution/Aspect dropdown menu. It may currently display Free Aspect or 16:9.
3. Scroll to the bottom of the list and click the + button.
4. Configure the new resolution as follows:
– Label: Portrait (1080×1920)
– Type: Fixed Resolution
– Width: 1080
– Height: 1920
5. Click OK.
6. Select Portrait (1080×1920) from the Resolution/Aspect dropdown.
This provides a consistent portrait preview while designing and testing the book viewer.

Step 2: Create Your Story Data

1. Navigate to the folder where your stories are stored, for example:
Assets/Scripts/Book/Stories/
2. Right-click an existing StoryData ScriptableObject asset.
3. Select Duplicate.
– Windows: Ctrl + D
– Mac: Cmd + D
4. Rename the duplicated asset to match your new story.
5. Select the new StoryData asset. In the Inspector:
– Change the Title.
– Rewrite or paste your custom story into the Content text field.

Step 3: Link Your Story to the Book List Scene

1. Open the ListBook scene in Unity.
2. In the Hierarchy, find the UI panel that contains the book-selection buttons.
3. Select a button, or duplicate an existing button to create a new book slot.
4. In the Inspector, find the button’s story assignment script or click handler.
5. Drag and drop your newly created StoryData ScriptableObject into its Story Reference slot.
Done! Press Play to test your new story with the page-flip effect.

Using the BookViewer Scene Directly
If you only want to use the BookViewer scene directly:
1. Open the BookViewer scene.
2. Select the Manager GameObject in the Hierarchy.
3. In the BookViewer component, drag and drop your StoryData ScriptableObject into the Default Story slot.
The selected story will load automatically when the scene starts.

🔊 Optional Sound Effects Setup
The page-flipping sound effect is fully optional. If no audio source or audio clip is assigned, the system will continue working without errors.
To configure page-flip audio:
1. Make sure your BookViewer, Canvas, or another suitable GameObject has an AudioSource component.
2. Select the PageFlipAnimator GameObject.
3. In the Inspector, assign the AudioSource component to the Audio Source field.
4. Assign an audio file—such as .wav or .mp3—to the Flip Sound field.
5. (Optional) Adjust the Min Pitch and Max Pitch values to add small pitch variations between page turns for a more natural result.

 

Unity Book Viewer Setup Guide | free unity asset | Unity Book Asset

 

—————————
Fixing Input System Conflict (Unity 6+)
If you are using Unity 6 (or any version with the New Input System package active) and encounter the following error:
InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.

Follow these steps to resolve the conflict:
Method 1: Update the EventSystem Module (Recommended)
In your Hierarchy window, select the EventSystem GameObject.
In the Inspector, you will see a warning on the Standalone Input Module component.
Click the “Replace with InputSystemUIInputModule” button located at the bottom of the component in the Inspector.
Unity will automatically replace the old module with the new Input System UI Input Module, restoring UI interaction.

 

Unity Book Viewer Setup Guide | free unity asset | Unity Book Asset

 

Method 2: Configure Player Settings for Both Systems
If your project relies on both the legacy and the new input system:
Go to Edit > Project Settings > Player.
Scroll down to the Other Settings section.
Locate Active Input Handling.
Change the dropdown option from Input System Package (New) to Both.
Unity will prompt you to restart the editor. Click Apply/Restart.

———————–

Adding Scenes to Build Settings
Before building the project or testing transitions between the book selection menu and the viewer, you must add all required scenes to the project’s build list.
1- Open the project in Unity.
2- Go to File > Build Settings from the top menu.
3- Locate your scenes in the Project window (inside a folder named Scenes).
4- Drag and drop your scenes into the Scenes In Build list at the top of the Build Settings window:
5- First, drag your MainMenu scene so its index is 0. Then other scenes.

————————

Requirements
• Unity 2022.3 or newer
• TextMeshPro (included with Unity)
• No additional packages required

—————————-

Frequently Asked Questions

Q: Can I add unlimited books?
A: Yes.

Q: Can I use my own font?
A: Yes. Replace the TextMeshPro Font Asset.

Q: Does the package support mobile?
A: Yes. It is designed for both desktop and mobile devices.

————————
About the Creator
Developed by: Farnoosh Lotfifard
🌐 Website: https://unityqueen.com
🎥 YouTube: https://www.youtube.com/@unityqueengame)

 

Download Link

If this asset helped you in your project, please consider supporting my work with a donation (Donation Link)

 

Leave a Reply

Your email address will not be published. Required fields are marked *


Skip to toolbar