Version: 2021.3

UnsafeUtility.As<U, T>(ref U from)

切换到手册

参数

from The reference to reinterpret.

返回

void A reference to a value of type T.

描述

Reinterprets the reference as a reference of a different type.