Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
This content is hosted by a third party provider that does not allow video views without acceptance of Targeting Cookies. Please set your cookie preferences for Targeting Cookies to yes if you wish to view videos from these providers.
1/7
Instance Batcher is a mesh batching solution that will help you reduce draw
calls when using large number of
prefab instances.

Documentation

Please visit the Forum if you have any questions.

========== Features ==========

Requires almost no change in workflow.

Reduces draw calls by batching larger number of instances of a single mesh, while still allowing dynamic use of individual instances.

No vertex limit on the original mesh
(vertex limit of 65534 vertices per Mesh still applies)

Allows dynamic changes to:
- Transform component
- MeshRenderer component properties:
   - shadow casting mode
   - receive shadow
   - material
   - shared material

Allows setting per instance color (RGBA).

Dynamic renderer bounds calculation for each batch (render only visible batches).

Changes are applied in LateUpdate.

Modified Standard shaders:
- Metallic and Specular workflow
- Forward and Deferred render path
- Directional, Point and Spot lights
   (with shadows and cookies)
- using per instance color

Easy to use InstanceBatcher_Utils.cginc for adding instancing support to custom shaders:
- Includes basic instructions
- Simple custom shader provided as a    sample

Editor Tool for generating Instance Batcher Prefab.

Source code included.

=== Requirements and Limitations ===

Target device must have support for:
- Shader Model 3.0
- TextureFormat.RGBAFloat

InstanceBatcher_Utils.cginc works only with vertex/fragment shaders.

Does not support per instance culling.

Does not support multiple materials or sub-meshes on a game object with InstanceController component attached.

Does not work with light probes and/or reflection probes.

Does not support SkinnedMeshRenderer

Does not support LOD Group

Modified Standard shaders do not support parallax.

Things that will make instance not batch with others and will create a new batch:

- Each combination of MeshRenderer's    shadow casting mode and receive shadow    will create a separate batch.

- MeshRenderer's material property behaves    as normal and will produce a new    material, which means that it won't batch    with other instances.

- Adding new instance when the capacity of    the largest batch is reached will produce a    new batch of smallest capacity.

Instance Batcher

(not enough ratings)
137 users have favourite this asset
(137)
$60
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
1.9 MB
Latest version
1.0
Latest release date
Jul 13, 2016
Original Unity version
5.1.0
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR