ReflectionHelpers.AccessInternalField(T) Method
From Cinemachine
Cinemachine
![]() | ReflectionHelpersAccessInternalFieldT Method |
Cheater extension to access internal field of an object
Namespace: Cinemachine.Utility
Assembly: Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
public static T AccessInternalField<T>( this Type type, Object obj, string memberName )
JavaScript does not support generic types or methods.Parameters
- type
- Type: SystemType
The type of the field - obj
- Type: SystemObject
The object to access - memberName
- Type: SystemString
The string name of the field to access
Type Parameters
- T
Return Value
Type: TThe value of the field in the objects
