SerializedProperty[] GetComponents(SerializedProperty value)
    {
        // Current component property
        SerializedProperty property = null;
        // The result
        List <SerializedProperty> result = new List <SerializedProperty>();

        for (int i = 0; i < value.arraySize; i++)
        {
            // Get the component
            property = value.Child(i).Get("component");
            // Add component as property
            result.Add(property);
        }

        return(result.ToArray());
    }