AnyPortrait > Manual > Inspector UI
If you select an apPortrait object created with AnyPortrait in the Unity editor, the information appears in the Inspector.
This page explains the elements of the inspector.
The basic configuration of the inspector is as above.
1. Open Editor : Open the editor and choose to edit the current object right away. (If Optimized Bake, you can open the editor but not edit.)
2. Quick Bake : Bake right away.
3. Refresh Meshes : Refresh the meshes of the baked character.
4. Tab : You can view by switching the property UI according to the type.
5. Properties : Detailed properties are displayed according to the selected tab.
6. Show All Properties : You can check by opening all properties of apPortrait. (There is a lot of data, so the performance of the editor may be slow. For developers.)
The first tab shows basic properties and properties related to the prefab.
- Is Important : If this setting is on, it will update every frame of the game, if it is off, it will only update at low FPS. The FPS you want to run can be changed in Settings dialog or Bake dialog.
- Sorting Layer/Order : Set options for rendering order.
- Billboard Type : Change billboard settings.
- Prefab : If the object is a prefab, this property is additionally displayed. You can view and control the connection status with the prefab. (Related Page)
In the second tab, referable sub-objects are shown in list format.
- Root Portraits : You can see the root units.
- Images : Images are shown, and names can be copied to the clipboard.
- Sockets : All sockets of the mesh or bone are shown. You can find that Transform or copy its name.
The third tab shows the animation clip list and settings related to Mecanim and Timeline.
- Animation Settings : A list of animations appears. An "A" icon appears in front of the autorun animation, and you can copy the names or preview them.
- Mecanim Settings : These are the necessary settings when using Mecanim. (Related Page)
- Timeline Settings : These settings are used when linking with Unity's Timeline. (Related Page)
The fourth tab displays settings related to animation events.
For the description of the animation event UI, please refer to Related Page.
In the fifth tab you can see the control parameters.
Here it is possible to see how the character moves right in the Unity editor by manipulating the control parameters.
With the Animation tab selected, you can preview the animation using the slider.
(1) Press the "Play" button of the animation you want to preview.
(2) The animation preview slider will appear.
(3) If you move the slider, the animation suitable for the frame is calculated and displayed in the Unity editor. If you want to end the preview, just press the "Stop" button for the animation again.
Please note that the animation preview has the following limitations.
- Clipping mesh rendering does not work.
- Animations do not play in real time.
- If the billboard option is turned on, character rendering may look strange.
If the control parameter is manipulated with the control parameter tab selected, it will be reflected on the character as shown above.
As long as the control parameters are not controlled by animations or external scripts, it is possible to manipulate them in the inspector while the game is running.