Resource Types - firtoz/react-three-renderer GitHub Wiki

Wiki » Internal Components » Resource Types

Resource Types

Allows you to reuse entities, these help save a lot of memory

Usage

Place <resources></resources>; anywhere inside <React3/>, or any of its children.

The preferred place inside the parent is before any other component, since it's expensive to replace.

If this component is remounted, all of the resources will be recreated.

To use resources, please see:

Then you can place these components inside to create and assign resources, as long as they have a resourceId property:

Components