Rename AllocState to NewState

This commit is contained in:
Wojtek Figat
2023-09-24 13:17:59 +02:00
parent 1c20398d8c
commit 959bd33efc

View File

@@ -82,7 +82,7 @@ namespace FlaxEngine
/// Sets the node state at the given memory address.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void AllocState(IntPtr memory, object state)
public void NewState(IntPtr memory, object state)
{
var handle = GCHandle.Alloc(state);
var ptr = IntPtr.Add(memory, _memoryOffset).ToPointer();