기술 자료

Unity Engine

Unity Engine

CopyStructureToPtr<T>(ref T, void*)

Copies sizeof(T) bytes from a memory pointer to a struct.
읽는 시간 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.