[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/BuildAssetBundleOptions.AssetBundleStripUnityVersion.html [Back]  [Original]

Unity - Scripting API: BuildAssetBundleOptions.AssetBundleStripUnityVersion
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    BuildAssetBundleOptions.AssetBundleStripUnityVersion

    Suggest a change

    Success!

    Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

    Close

    Submission failed

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

    Close
    Your name Your email Suggestion* Submit suggestion

    Cancel

    Description

    Prevents the Unity Editor version from being recorded in the AssetBundle.

    This flag is highly recommended in most scenarios.

    When this flag is not specified, the current version of the Unity Editor is recorded in the AssetBundle, specifically in the archive file header and header of each SerializedFile inside the archive. Including the Unity Editor version can be helpful for debugging purposes, as it allows you to identify the version of Unity used to build a specific AssetBundle.

    However, this behavior can result in unwanted side effects. For example, rebuilding an AssetBundle after installing a Unity patch, even if the actual content has not changed, will cause a change in the content of the AssetBundle. This can lead to unnecessary distribution overhead.

    Using AssetBundleStripUnityVersion eliminates this issue by using a placeholder version of "0.0.0" instead of the actual Unity Editor version.

    The version information is purely informational and does not affect the ability to load the AssetBundle across different Unity versions.


    Web Proxy Viewer  |  New URL  |  Original Page