文档

Unity Engine

Unity Engine

CopyStructureToPtr<T>(ref T, void*)

Copies sizeof(T) bytes from a memory pointer to a struct.
阅读时间1 分钟最后更新于 1 个月前

Definition

CopyStructureToPtr<T>(T, void*)

public static void CopyStructureToPtr<T>(ref T input, void* ptr) where T : struct

Parameters

input

T
A struct to copy data to.

The memory pointer to copy from.