Engine Modules

    Example:

    Build-Time Constants

    As these constants are declared with const, they provide good opportunities for code optimization.

    Examples are as follows:

    1. import { DEV } from 'cc/env';
    2. if (DEV) {
    3. }