ReflectionHelpers Class

Cinemachine

ReflectionHelpers Class

An ad-hoc collection of helpers for reflection, used by Cinemachine or its editor tools in various places
Inheritance Hierarchy
SystemObject  Cinemachine.UtilityReflectionHelpers

Namespace:  Cinemachine.Utility
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
[DocumentationSortingAttribute(0f, DocumentationSortingAttributeLevel.Undoc)]
public static class ReflectionHelpers
Cinemachine.Utility.ReflectionHelpers = function();

Type.createClass(
	'Cinemachine.Utility.ReflectionHelpers');

The ReflectionHelpers type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAccessInternalFieldT
Cheater extension to access internal field of an object
Public methodStatic memberCopyFields
Copy the fields from one object to another
Public methodStatic memberGetFieldPathTType, TValue
Returns a string path from an expression - mostly used to retrieve serialized properties without hardcoding the field path. Safer, and allows for proper refactoring.
Public methodStatic memberGetParentObject
Get the object owner of a field. This method processes the '.' separator to get from the object that owns the compound field to the object that owns the leaf field
Top
See Also