Cinemachine
ReflectionHelpers Class |
An ad-hoc collection of helpers for reflection, used by Cinemachine
or its editor tools in various places
Inheritance Hierarchy
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
Name | Description | |
---|---|---|
AccessInternalFieldT | Cheater extension to access internal field of an object | |
CopyFields | Copy the fields from one object to another | |
GetFieldPathTType, 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. | |
GetParentObject | 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 |
See Also