Exemple #1
0
        private static IEnumerable <LSScenePropertyDrawer> GetPropertyDrawers(SerializedProperty p)
        {
            Type propertyObjectType      = LSEditorUtility.GetPropertyType(p);
            LSScenePropertyDrawer drawer = LSScenePropertyDrawer.GetDrawer(propertyObjectType);

            yield return(drawer);

            IEnumerable <PropertyAttribute> propertyAttributes = LSEditorUtility.GetPropertyAttributes <PropertyAttribute>(p);

            foreach (PropertyAttribute propertyAttribute in propertyAttributes)
            {
                drawer = LSScenePropertyDrawer.GetDrawer(propertyAttribute.GetType());
                yield return(drawer);
            }
        }