Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

FunctionPointer<T0>

struct in Unity.Burst


Implements interfaces:IFunctionPointer

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A function pointer that can be used from a Burst Job or from regular C#. It needs to be compiled through BurstCompiler.CompileFunctionPointer

Properties

Property Description
Invoke Gets the delegate associated to this function pointer in order to call the function pointer. This delegate can be called from a Burst Job or from regular C#. If calling from regular C#, it is recommended to cache the returned delegate of this property instead of using this property every time you need to call the delegate.
IsCreated Whether the function pointer is valid.
Value Gets the underlying pointer.

Constructors

Constructor Description
FunctionPointer_1 Creates a new instance of this function pointer with the following native pointer.