Cached files

When you build your project, Xenko caches the assets and code in folders inside the project. You might want to clean the cache if:

  • the cache is taking up too much space on disk
  • assets don’t update in-game after you edit or delete them

    Clean the cache from Visual Studio

  • Build, select Clean Solution.
  • Xenko Visual Studio extension installed, you can also clean the asset cache. To do this, under Xenko, select Clean intermediate assets for Solution. -

    Clean the cache manually

    If cleaning the cache from Visual Studio doesn’t work, try deleting the files manually.
  • Delete the following folders:

  • ~/MyGame/MyGame/Bin

  • ~/MyGame/MyGame/Cache
  • obj folders in the platform folders for your game (eg ~/MyGame.iOS/obj)
  • ~/Library/Caches/Xamarin/mtbs/builds/MyGame
  • Rebuild the project to rebuild the cache from scratch.

    Clear the Game Studio caches

    In addition to the caches Xenko creates for your project, Game Studio keeps caches for the editor.

    Asset cache

    To speed up asset loading in the editor, Game Studio saves a cache of asset references. It contains data about every asset ever loaded in every project. This means it can grow very large over time. %temp%/Xenko
    Tip
    Edit > Settings > Environment > Build cache directory. To clean the cache, delete the folder and run Game Studio again.

    Settings cache

    %AppData%/Xenko .xkpkg.user file in the project folder (eg ~/MyGame/MyGame/MyGame.xkpkg.user). These files are small, but you might want to delete them if you get Game Studio into a bad state. Deleting them doesn’t affect anything in your project. After you delete cache files, when you start Game Studio, it builds a new cache using the default settings.
    Tip
    Edit > Settings > Interface > Reset Game Studio layout.

    See also

  • Project structure
  • Version control