/// <inheritdoc/> public Type GetDrawerType(IDrawerByNameProvider drawerByNameProvider) { return(drawerByNameProvider.GetFieldDrawerTypeByName("CustomDataSetDrawer")); }
/// <inheritdoc/> public Type GetDrawerType(Type attributeHolderType, Type defaultDrawerTypeForAttributeHolder, IDrawerByNameProvider drawerByNameProvider) { return(drawerByNameProvider.GetDrawerTypeByName(drawerTypeName)); }
/// <inheritdoc/> public Type GetDrawerType(Type attributeHolderType, Type defaultDrawerTypeForAttributeHolder, IDrawerByNameProvider drawerByNameProvider) { #if POWER_INSPECTOR // if power inspector is installed #if UNITY_EDITOR if (customEditorComponentDrawerInterface == null) { customEditorComponentDrawerInterface = drawerByNameProvider.GetComponentDrawerTypeByName("ICustomEditorComponentDrawer"); #if DEV_MODE && PI_ASSERTATIONS Debug.Assert(customEditorComponentDrawerInterface != null); #endif } if (customEditorComponentDrawerInterface.IsAssignableFrom(defaultDrawerTypeForAttributeHolder)) { if (coloredCustomEditorComponentDrawer == null) { coloredCustomEditorComponentDrawer = drawerByNameProvider.GetComponentDrawerTypeByName("ColoredCustomEditorComponentDrawer"); } return(coloredCustomEditorComponentDrawer); } #endif #if DEV_MODE && PI_ASSERTATIONS Debug.Assert(drawerByNameProvider.GetComponentDrawerTypeByName("IEditorlessComponentDrawer").IsAssignableFrom(defaultDrawerTypeForAttributeHolder)); #endif if (coloredComponentDrawer == null) { coloredComponentDrawer = drawerByNameProvider.GetComponentDrawerTypeByName("ColoredComponentDrawer"); #if DEV_MODE && PI_ASSERTATIONS Debug.Assert(coloredComponentDrawer != null); #endif } return(coloredComponentDrawer); #else // if power inspector is not installed throw new NotSupportedException("BackgroundColorAttribute.GetDrawerType is not supported because Power Inspector is not installed."); #endif }