MasterNin ECSAnimator
On this page

13 - Generic Flying Bat Crowd

Generic bat crowd in Play

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

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.