AnyPortrait > Advanced Manual > Bake Dialog

Bake Dialog

[Changed in v1.1.0]


As of v1.1.0, the UI of the Bake dialog has been partially changed.

When you press the Bake button at the top of the screen, the Bake dialog box appears.

At the top of the dialog are the Bake tab and the Setting tab.

The Settings tab contains settings for apPortrait for Bake.

[ Bake Tab ]

1. Portrait : The apPortrait currently being edited.

2. Bake Scale : Since the coordinate system of AnyPortrait is different from the coordinate system of Unity, it is the ratio of size to fit this.

3. Z Per Depth : The Z interval of each mesh. Too small may cause Z-Fighting problems.

4. Bake : Bake to Unity scene.

5. Optimized Baking Target

6. Optimized Bake : Optimized Bake to Unity scene.

[ Setting Tab ]

7. Color Space

: Bake according to Color space. (Gamma / Linear)

8. Sorting Layer / Order

: This is an option to determine the rendering order, and you can decide how to assign Sorting Order. (Related page)

9. Mecanim Settings

: You can set whether to use Mecanim and the path where the Animation Clip assets to be included in Animator are saved.

10. Important Settings

: If you turn off Important, only the specified FPS is updated. For objects or NPCs that are not important in games, etc., you can turn off Important and optimize for updates. It is on by default.

(Related page)

11. Billboard

: This setting makes the character look at the camera.

Once the billboard is active, it is possible to use a perspective camera, allowing the character to be placed in the 3D scene.

(Related page)

12. Shadow Settings

: You can specify the Shadow settings of the created Mesh Renderer in batch. (Shaders that are shipped by default do not apply shadows when you turn on Receive Shadows.)

13. Render Pipeline

: This option can be set according to the project's Render Pipeline (Default / Scriptable Render Pipeline).

(This option is supported since Unity 2019.)

This option causes the clipping mesh to render properly.

See the following pages for a description of the render pipeline and materials.

(Material Library / Lightweight Render Pipeline)

14. VR Option

: It is the rendering option when using VR or using multiple cameras.

This option makes the clipping mesh and billboard calculations work for your environment.

Refer to the following page for the description of VR.

(Build to VR)

15. Set Ambient Light to Black color

: This makes the Unity scene's Ambient color black to prevent characters from rendering too bright.


Change Ambient Light setting

[Added in v1.1.2]

If you create a character in AnyPortrait and then bake it, you may have experienced the character's appearance too bright.

This is because the character of AnyPortrait receives the Ambient Light of the scene.

You need to change the Ambient Light to black for proper application, and you can do this quickly in the Bake dialog.


This is the render screen in the scene right after Bake.

You can see that it is being rendered too bright, unlike the original color.


On the Setting tab of the Bake dialog, click the "Set Ambient Light to Black Color" button.


You can see that the Ambient settings change and render to normal brightness.