Exemplo n.º 1
0
 void FindTargetField()
 {
     if (!string.IsNullOrEmpty(propertyPath))
     {
         object data = PropertyDrawerUtility.GetActualObjectFromPath <object>(propertyPath, targetObject);
         if (data is EventData)
         {
             if (data != null && actionIndex < (data as EventData).blocks.Count)
             {
                 targetField = (data as EventData).blocks[actionIndex].block;
             }
         }
         else
         {
             targetField = data;
         }
     }
     else if (GetTargetField != null)
     {
         targetField = GetTargetField(userObject);
     }
 }