technique

Array-of-objects pattern

Declare an array of a custom class, allocate it, then instantiate every element in a loop, so one class definition drives many independent on-screen instances.

Also called: array of objects

What it is

How it works

Parameters & tuning

Where it’s been used

Variants & neighbours

Go deeper

Connected to

A kind of: Array-driven per-instance animation


Revision 1 · 1 source · Something wrong? Tell us.