docs.unity.cn
    Show / Hide Table of Contents

    Class SearchMonitor

    Inheritance
    Object
    SearchMonitor
    Namespace: UnityEditor.Search
    Syntax
    [InitializeOnLoad]
    public static class SearchMonitor

    Properties

    pending

    Declaration
    public static bool pending { get; }
    Property Value
    Type Description
    Boolean

    Methods

    GetDiff(Int64, IEnumerable<String>, Func<String, Boolean>)

    Declaration
    public static AssetIndexChangeSet GetDiff(long timestamp, IEnumerable<string> deletedAssets, Func<string, bool> predicate)
    Parameters
    Type Name Description
    Int64 timestamp
    IEnumerable<String> deletedAssets
    Func<String, Boolean> predicate
    Returns
    Type Description
    AssetIndexChangeSet

    Log(String, UInt64)

    Declaration
    [Conditional("DEBUG_SEARCH_MONITOR")]
    public static void Log(string message, ulong documentKey = 0UL)
    Parameters
    Type Name Description
    String message
    UInt64 documentKey

    RaiseContentRefreshed(String[], String[], String[])

    Declaration
    public static void RaiseContentRefreshed(string[] updated, string[] removed, string[] moved)
    Parameters
    Type Name Description
    String[] updated
    String[] removed
    String[] moved

    Reset()

    Declaration
    public static void Reset()

    Events

    contentRefreshed

    Declaration
    public static event Action<string[], string[], string[]> contentRefreshed
    Event Type
    Type Description
    Action<String[], String[], String[]>

    documentsInvalidated

    Declaration
    public static event Action documentsInvalidated
    Event Type
    Type Description
    Action

    objectChanged

    Declaration
    public static event ObjectChangeEvents.ObjectChangeEventsHandler objectChanged
    Event Type
    Type Description
    ObjectChangeEvents.ObjectChangeEventsHandler

    sceneChanged

    Declaration
    public static event Action sceneChanged
    Event Type
    Type Description
    Action
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, October 26, 2022
    Terms of use