Skip to main content

GpuInstancer

22 tools in this family (folder Editor/Tools/GpuInstancer/ in the bridge package). Effect: writes changes the project or the scene, read-only does not, destructive deletes or overwrites and the client asks before running it.

ToolEffectDescription
gpu_instancer_add_crowd_instancewritesSpawn a single crowd instance (one unit / NPC) at a transform. Initial animation
gpu_instancer_add_crowd_prototypewritesRegister a skinned-mesh crowd prototype (RTS units, NPC ambient population, dance
gpu_instancer_add_instancewritesAdd one prefab instance at a given transform. Returns an opaque instance handle id
gpu_instancer_add_prefab_prototypewritesRegister a prefab prototype with GPU Instancer. LOD distances form the band ranges
gpu_instancer_configure_lodwritesReconfigure a prototype's LOD bands + cross-fade. cross_fade_mode selects the blend
gpu_instancer_emit_auto_register_handlerwritesEmit a MonoBehaviour script that, when dropped on any scene root, walks every child
gpu_instancer_emit_terrain_auto_setupwritesEmit a MonoBehaviour script that scans every Terrain in the active scene on Start and
gpu_instancer_export_setupread-onlyExport the entire current GPU Instancer setup as a single JSON blob: prototypes (prefab
gpu_instancer_get_statsread-onlySnapshot live counters: per-prototype instance count, rendered count after culling,
gpu_instancer_initwritesInitialize GPU Instancer Pro. Probes GPUInstancer / GurBu.GPUInstancer / GPUI namespaces
gpu_instancer_list_prototypesread-onlyList every registered prototype (prefab + terrain + crowd) with LOD + culling config +
gpu_instancer_rebuild_terrain_bufferswritesRebuild the GPU buffers backing a registered Terrain. Call after the designer (or LLM)
gpu_instancer_remove_instancewritesUnregister a single live instance by its handle id. Idempotent — re-removing the same
gpu_instancer_remove_prefab_prototypedestructiveUnregister a prefab prototype. Dangerous: requires confirm=true. All live instances
gpu_instancer_set_distance_cullingwritesSet the per-prototype max render distance. Beyond this distance the prototype's
gpu_instancer_set_frustum_cullingwritesEnable or disable compute-shader-driven frustum culling on a camera. With frustum
gpu_instancer_set_occlusion_cullingwritesEnable or disable Hi-Z buffer occlusion culling on a camera. Builds a depth pyramid
gpu_instancer_set_shadow_distancewritesSet the per-prototype max shadow render distance. Typically << max_distance — shadows
gpu_instancer_setup_terrain_detailswritesRegister a Unity Terrain for GPU detail (grass / flowers / pebbles) rendering. Replaces
gpu_instancer_setup_terrain_treeswritesRegister a Unity Terrain for GPU tree rendering. Replaces Unity's per-instance tree
gpu_instancer_update_crowd_animationwritesUpdate a crowd instance's animation state + normalized time (0..1 within the clip).
gpu_instancer_update_transformwritesUpdate an existing instance's position / rotation / scale. Use for moving objects (e.g.