Newer
Older
pixi.js / packages / utils / src / data / uid.js
@Matt Karl Matt Karl on 31 Oct 2017 208 bytes Next Restructure for v5 (#4387)
let nextUid = 0;

/**
 * Gets the next unique identifier
 *
 * @memberof PIXI.utils
 * @function uid
 * @return {number} The next unique identifier to use.
 */
export function uid()
{
    return ++nextUid;
}