Solar Tools for PlayCanvas
  • Overview
  • Installation
  • Uranus SDK Systems
    • Uranus GPU Instancer
      • Get started with instancing
      • Working with LODs
      • Working with Cells
      • Working with Data
    • Uranus Material Effects
      • Get started with effects
      • Working with Skybox
  • Changelog
Powered by GitBook
On this page
  1. Uranus SDK Systems
  2. Uranus GPU Instancer

Get started with instancing

PreviousUranus GPU InstancerNextWorking with LODs

Last updated 2 years ago

You can easily use Uranus Instancer in your project and get all the benefits of an automatic hardware instancing solution by simple adding the uranus-instancer.js script to your scene.

The best place to add it is at your Root scene entity. That way it gets enabled before any other entity is initialized in your scene.

Uranus Instancer works with Render and Model (Legacy) components. Some features like Cells and LODs work only with Render components, so where possible use Render components in your project if you plan to use those features.

As soon as the script is added to your project Uranus Instancer will get activated and automatically parse and instance all of your scene models.

Note that a material used on an instanced object can no longer be used to render non instanced models. If that happens visual artifacts will render on your scene. To avoid doing that make sure to use a separate material on non instanced models.

Uranus GPU Instancer running inside the PlayCanvas editor
Aritelia, an open world HTML5 game with thousands of unique objects. By Solar games: https://aritelia.io