docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateAsset

    CreateAsset(string, Action<TContainer>)

    Create a new asset instance saved to disk.

    Declaration
    public static TContainer CreateAsset(string assetPath, Action<TContainer> mutator = null)
    Parameters
    Type Name Description
    string assetPath

    The location where to create the asset.

    Action<TContainer> mutator

    Optional mutator that can be used to modify the asset.

    Returns
    Type Description
    TContainer

    The new asset instance.

    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)