docs.unity.cn
    Show / Hide Table of Contents

    Class AssetReimportUtils

    Set of utilities for Material reimporting.

    Inheritance
    Object
    AssetReimportUtils
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.Rendering
    Syntax
    public static class AssetReimportUtils

    Methods

    ReimportAll<TAsset>(out Double, out UInt32, Func<String, Boolean>)

    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

    UInt32 numberOfAssetsReimported

    The number of assets that have been re-imported

    Func<String, Boolean> 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

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023