docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AssetReimportUtils

    Set of utilities for Material reimporting.

    Inheritance
    object
    AssetReimportUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    public static class AssetReimportUtils

    Methods

    ReimportAll<TAsset>(out double, out uint, Func<string, bool>)

    Re-imports a given type of asset, and sends an analytic with the elapsed time

    Declaration
    public static void ReimportAll<TAsset>(out double duration, out uint numberOfAssetsReimported, Func<string, bool> importNeedDelegate = null)
    Parameters
    Type Name Description
    double duration

    The elapsed time

    uint numberOfAssetsReimported

    The number of assets that have been re-imported

    Func<string, bool> importNeedDelegate

    A delegate if you want to skip some asset to be re-imported

    Type Parameters
    Name Description
    TAsset

    The asset type that will be re-imported

    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)