docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PortableFunctionPointer<T>

    Simple RAII-like wrapper that simplify making C# function delegate burst compatible.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    public struct PortableFunctionPointer<T> where T : Delegate
    Type Parameters
    Name Description
    T

    the function delegate type

    Constructors

    PortableFunctionPointer(T)

    Convert the delegate to a burst-compatible function pointer.

    Declaration
    public PortableFunctionPointer(T executeDelegate)
    Parameters
    Type Name Description
    T executeDelegate

    the function delegate

    In This Article
    Back to top
    Copyright © 2025 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)