On this page
13 - Generic Flying Bat Crowd

Open 13_GenericCrowd/Scenes/13_GenericCrowd.unity, enter Play and select Bat on the bottom toolbar; see the Generic creature guide. The former standalone scene is retired. A 50 x 50 formation alternates 1,250 Violet and 1,250 Crimson bats, playing the default Idle hover/flap animation. The bat has an 8-bone Generic, non-Humanoid skeleton with independently animated wing and wing-tip bones. The membrane is skinned geometry; this is not a static mesh moved as a whole.
The scene reuses Demo01's Crowd2500Scene and camera. Both serialized character slots contain bat EntityDesc assets. For a close view in Play, set Main Camera Position to (-28.5, 1.9, -32), Rotation to (17, 0, 0) and Field of View to 45; stop Play to restore the overview. Spawn and release use the same public batch and scope APIs as the human crowd. This is a functional presentation, not a measured capacity or performance claim.
Source and conversion
- Models/CaveBat.fbx contains the rig, skinned body/membrane and three two-second, 24 FPS animations. Import as Generic, create the Avatar from this model, enable Read/Write, import normals and calculate tangents. Extracted ECSAnimator/Lit materials render both sides of the wing membrane.
- Animations/ contains Idle, Fly and Attack clips. Authoring/CaveBat.controller defaults to Idle.
Moving(Bool) selects the faster flap inBase Layer/Move#1;Attack(Trigger) selectsBase Layer/Attack#2and then returns to Idle. - Resources/ECSAnimator/20_GenericBat/ contains two source Prefabs and adjacent EntityDesc assets. Authoring/ contains their conversion presets. Each output includes all three compiled clips and its derived skin/material resources.
- For a first rebuild in an imported sample, copy the source Prefab to a new name, create a preset with a new unique Product Key, leave Output Root empty and run Tools > ECSAnimator > Convert Character. Local Editor recovery snapshots are not distributed.
The Violet loading key is ECSAnimator/20_GenericBat/CaveBat_Violet/CaveBat_Violet_EntityDesc; the Crimson variant uses the corresponding Crimson name. Load the descriptor, then prepare/spawn using CharacterRuntime. For parameter control use exact Moving / Attack names and Base Layer/Idle#0, Base Layer/Move#1, Base Layer/Attack#2 state keys.
Animations are authored for this exact skeleton; Generic is not automatic retargeting between unrelated creatures. Flight trajectory, navigation, collision and gameplay movement are application responsibilities. Root-motion gameplay, Unity IK callbacks, multiple Animator compilation and arbitrary component-property animation remain unsupported. No runtime pose constraints are configured here; see Demo14 for the separate LocalResolve two-bone IK API. The original Blender-authored assets are included as FBX/Unity inputs; Blender is not required to use the sample.
Current theme: 13_GenericCrowd. Authoring/scripts live here; prebuilt resources live in the theme's Resources directory with unchanged loading keys.