# bUseExternalFilesDir变量的描述错误

**URL:** <https://forums.unrealengine.com/t/buseexternalfilesdir/489251>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, question\
**Created:** [September 27, 2021, 10:55am UTC](https://forums.unrealengine.com/t/buseexternalfilesdir/489251 "2021-09-27T10:55:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dsinglore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dsinglore](https://forums.unrealengine.com/u/Dsinglore)\
**Post date:** [September 27, 2021, 10:55am UTC](https://forums.unrealengine.com/t/buseexternalfilesdir/489251/1 "2021-09-27T10:55:42Z")

</div>

在AndroidRuntimeSettings.h中有个变量叫做bUseExternalFilesDir  
描述如下:

1. // If checked, UE4Game files will be placed in ExternalFilesDir which is removed on uninstall.
2. // You should also check this if you need to save you game progress without requesting runtime WRITE\_EXTERNAL\_STORAGE permission in android api 23+
3. UPROPERTY(GlobalConfig, EditAnywhere, Category = APKPackaging, Meta = (DisplayName = “Use ExternalFilesDir for UE4Game files?”))
4. bool bUseExternalFilesDir;

描述的意思大概是如果为true, UE4Game将会使用手机里的外部存储路径,并且卸载游戏时会自动删除.  
但是实际测试后发现为true时,使用的是/SDCard/Android/data/ com.xxxx.xxxx 的内部存储路径,与描述以及变量名自身的意思相反
