Cinemachine
![]() | ReflectionHelpersGetFieldPathTType, TValue Method |
Returns a string path from an expression - mostly used to retrieve serialized properties
without hardcoding the field path. Safer, and allows for proper refactoring.
Namespace: Cinemachine.Utility
Assembly: Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)

public static string GetFieldPath<TType, TValue>( Expression<Func<TType, TValue>> expr )
JavaScript does not support generic types or methods.
Parameters
- expr
- Type: System.Linq.ExpressionsExpressionFuncTType, TValue
[Missing <param name="expr"/> documentation for "M:Cinemachine.Utility.ReflectionHelpers.GetFieldPath``2(System.Linq.Expressions.Expression{System.Func{``0,``1}})"]
Type Parameters
- TType
- TValue
Return Value
Type: String[Missing <returns> documentation for "M:Cinemachine.Utility.ReflectionHelpers.GetFieldPath``2(System.Linq.Expressions.Expression{System.Func{``0,``1}})"]
