UnsafeUtility.CopyPtrToStructure

Declaration

public static void CopyPtrToStructure(void* ptr, out T output);

Parameters

ptr The memory pointer to copy from.
output A struct to copy data to.

Description

Copies sizeof(T) bytes from a memory pointer to a struct.


Did you find this page useful? Please give it a rating: