docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SaveAsset

    SaveAsset(string)

    Save this asset to disk. If no asset path is provided, asset is saved at its original location.

    Declaration
    public bool SaveAsset(string assetPath = null)
    Parameters
    Type Name Description
    string assetPath

    Optional file path where to save the asset.

    Returns
    Type Description
    bool

    true if the operation is successful, false otherwise.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)