The SkinnedMeshBatchRenderer component is used to combine the rendering of all meshes controlled by the same skeletal animation component.
|Any changes to the property will not take effect immediately and will need to be recalculated by tapping the Cook button before they can be applied.
|The "master material" used after the merge requires the use of your own customized merge effect.
|For baking Lightmap, please refer to Lightmapping for details.
|Specify whether the current model will cast shadows, you need to Enable Shadow Effect in the scene first。
|Specify whether the current model will receive and display shadow effects generated by other objects, you need to Enable Shadow Effect in the scene first. This property only takes effect when the shadow type is ShadowMap.
|The root node of the skeletal skin, usually the node where the SkeletalAnimation component is located.
|The edge length of the final set generated by the combined atlas.
|The texture properties of the material that are actually involved in the merge, and the properties that are not involved in the merge, use the first unit's texture uniformly.
|The sub-model data before the combined batch, is the main data source.
|The model data of current sub-mesh, usually directly from glTF or FBX model file.
|The skeleton data of the current model, usually directly from the glTF or FBX model file.
|The "sub-materials" used by the current sub-model, which is a non-batching effect, the effect used by different sub-meshes should be consistent.
|The offset of the current sub-model when it is merged, with the top-left corner of the atlas as the origin, in the range
[0, 1]. For example, the data in the figure represents that the sub-map is overlapped with the top-left corner of the atlas.
|The size of the current sub-model, in the range
[0, 1]. For example, the data in the figure represents 1/2 of the entire set.
|The target properties (except
size) can be copied automatically by dragging in SkinningModelComponent for easy operation.
Please refer to BatchedSkinnedMeshRenderer for more details.
For API reference, please refer to SkinnedMeshBatchRenderer API.