docs.unity.cn
    Show / Hide Table of Contents

    Interface IVisitPropertyAdapter<TValue>

    Implement this interface to intercept the visitation for a specific type.

    Namespace: Unity.Properties
    Syntax
    public interface IVisitPropertyAdapter<TValue> : IPropertyVisitorAdapter
    Type Parameters
    Name Description
    TValue

    The value type being visited.

    Remarks
    IVisitPropertyAdapter<TContainer, TValue> IVisitPropertyAdapter

    Methods

    Visit<TContainer>(in VisitContext<TContainer, TValue>, ref TContainer, ref TValue)

    Invoked when the visitor encounters specific type with any container.

    Declaration
    void Visit<TContainer>(in VisitContext<TContainer, TValue> context, ref TContainer container, ref TValue value)
    Parameters
    Type Name Description
    VisitContext<TContainer, TValue> context

    The context being visited.

    TContainer container

    The container being visited.

    TValue value

    The value being visited.

    Type Parameters
    Name Description
    TContainer

    The container type being visited.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, July 26, 2023