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
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).