public FluentElement <PropertyField> NewField <TSource>(Expression <Func <TSource, object> > member, string label = null) { #if UNITY_EDITOR var bindingPath = FluentUITK.GetMemberPath(member); return(new PropertyField { bindingPath = bindingPath, label = label }); #else return(null); #endif }
/// <summary> Retrieves full path of a source member and sets it as a binding path. </summary> public FluentElement <T> Bind <TSource>(Expression <Func <TSource, object> > member) { var fullPath = FluentUITK.GetMemberPath(member); Bind(fullPath); return(x); }