UNPKG

playcanvas

Version:

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

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