UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

16 lines 401 B
/** * Helper class used to generate session unique ID */ export class UniqueIdGenerator { /** * Gets an unique (relatively to the current scene) Id */ static get UniqueId() { const result = this._UniqueIdCounter; this._UniqueIdCounter++; return result; } } // Statics UniqueIdGenerator._UniqueIdCounter = 1; //# sourceMappingURL=uniqueIdGenerator.js.map