You.i Engine C++ Tips and Tricks

Where can I find the version number of the AE plugin that is being used?

There are two ways to know the version number of the AE plugin you have been using. You can use either one of them:

  • During the export of the project, the title bar of the log window mentions the version number of the AE plugin.
  • Press H in the AE preview window to see the version number of the AE plugin at the bottom of the window.

Image

How to exclude specific files or file extensions or file directories before project generation?

To exclude specific file extensions before project generation, such as .log and .aep, do the following to the CMakeLists.txt file:

  1. Add the following command:

    set(YI_EXCLUDED_ASSET_FILE_EXTENSIONS ".log,.aep" CACHE STRING "Comma-delimited list of file extensions whose files should be omitted during asset copying.")
    
  2. Update the yi_configure_asset_copying(PROJECT_TARGET ${PROJECT_NAME} function as follows:

    yi_configure_asset_copying(PROJECT_TARGET ${PROJECT_NAME} 
    EXCLUDED_EXTENSIONS ${YI_EXCLUDED_ASSET_FILE_EXTENSIONS}
                      
    )
    

To exclude a specific files before project generation, such as abc.log and test.aep, do the following to the CMakeLists.txt file:

  1. Add the following command:

    set(YI_EXCLUDED_ASSET_FILES "abc.log,test.aep" CACHE STRING "Comma-delimited list of files that should be omitted during asset copying.")
    
  2. Update the yi_configure_asset_copying(PROJECT_TARGET ${PROJECT_NAME} function as follows:

    yi_configure_asset_copying(PROJECT_TARGET ${PROJECT_NAME}
          EXCLUDED_FILES ${YI_EXCLUDED_ASSET_FILES}
          )
    

To exclude a specific file directories before project generation, such as test or logs, do the following to the CMakeLists.txt file:

  1. Add the following command:

    set(YI_EXCLUDED_ASSET_FILE_DIRECTORIES "abc,test" CACHE STRING "Comma-delimited list of file directories that should be omitted during asset copying.")
    
  2. Update the yi_configure_asset_copying(PROJECT_TARGET ${PROJECT_NAME} function as follows:

    yi_configure_asset_copying(PROJECT_TARGET ${PROJECT_NAME}
                   EXCLUDED_DIRECTORIES ${YI_EXCLUDED_ASSET_FILE_DIRECTORIES}
             )