docs.unity3d.com
    目次を表示する/隠す

    Struct FunctionPointer<T>

    A function pointer that can be used from a Burst Job or from regular C#. It needs to be compiled through CompileFunctionPointer<T>(T)

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Burst
    Syntax
    public readonly struct FunctionPointer<T> : IFunctionPointer
    Type Parameters
    Name Description
    T

    Type of the delegate of this function pointer

    Constructors

    Name Description
    FunctionPointer(IntPtr)

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

    Properties

    Name 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.

    Explicit Interface Implementations

    Name Description
    IFunctionPointer.FromIntPtr(IntPtr)

    Converts a pointer to a function pointer.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)