Open sandboxFocus

Method GetMutableRef

GetMutableRef<T>(in T)

Gets a mutable reference from a read-only in reference. Calls to this method are replaced at build time.

Declaration
public static ref T GetMutableRef<T>(in T reference)
Parameters
Type Name Description
T reference

A read-only reference.

Returns
Type Description
T

The same reference as reference, but mutable.

Type Parameters
Name Description
T

The type of the reference.