Back to Templates
WebGL Instancer

WebGL Instancer

by Spatial

Use the GPU to draw numerous animated meshes on the screen, who path towards the player and despawn when attacked.

C#

GPU

Rendering

WebGL Instancer

This template demonstrates using the GPU to do draw numerous animated meshes on the screen.

It instances hundreds of NPCs who will try to path to the player and despawns when the player hits them with an attack.

Controls are provided for:

  • toggle instancing
  • toggle camera angles
  • toggle laser attacks
  • spawn bomb attack
  • spawn large bomb attack

Try it Out

To try out this template:

  • Download the code using the View Code button
  • Import the package into a new Unity project
  • Follow the steps at Creating a Package to set up the configuration for your package type
  • Test the package in your sandbox