Calling delegate inside [BurstCompile] Job

İ just want to call delegate inside a burstcompiled job as title, but i cant find true way to do or dont know can i do this.
(c# gods please bless me)

public void Execute(ArchetypeChunk chunk, int chunkIndex, int firstEntityIndex)
{
            float val= makeSomething.delegate(start,end,JobTime);
}
public delegate float TypeDelegate( float start, float end, float Value );

public struct makeSomething : ISharedComponentData
{
            public TypeDelegate delegate{ get; set; }
}

You can’t use C# delegates in burst. You need to use Burst’s “FunctionPointers”: Advanced Usages | Burst | 1.5.6

1 Like

Thank you <3