UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

16 lines (15 loc) 199 B
class RefCountedObject { _refCount = 0; incRefCount() { this._refCount++; } decRefCount() { this._refCount--; } get refCount() { return this._refCount; } } export { RefCountedObject };