Struct PortableFunctionPointer<T>
Simple RAII-like wrapper that simplify making C# function delegate burst compatible.
Inherited Members
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 |