Version: 2022.2
언어: 한국어

BuildPlayerContext.AddAdditionalPathToStreamingAssets

매뉴얼로 전환
public void AddAdditionalPathToStreamingAssets (string directoryOrFile, string pathInStreamingAssets);

파라미터

directoryOrFile Path representing an existing file or directory. If the path doesn't exit, this function throws a FileNotFoundException.
pathInStreamingAssets The path within the StreamingAssets folder at which to place the additional assets. If null, the file or directory is placed directly in the StreamingAssets folder.

설명

Add additional streaming assets to the built player data. For example, you can include AssetBundles or other streaming assets without first putting them in the project StreamingAssets folder.

You can add a single file or an entire directory.

If a file or directory with the same destination path has already been added to the BuildPlayerContext, then this function throws an ArgumentException.

If a file or directory with the same destination path already exists in the project, an exception is thrown later in the build process.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961