static PropertyDrawerDatabase()
 {
     drawersByAttributeType = new Dictionary <Type, PropertyDrawer>();
     drawersByAttributeType[typeof(DropdownAttribute)]        = new DropdownPropertyDrawer();
     drawersByAttributeType[typeof(MinMaxSliderAttribute)]    = new MinMaxSliderPropertyDrawer();
     drawersByAttributeType[typeof(MultiLineTextAttribute)]   = new MultiLineTextPropertyDrawer();
     drawersByAttributeType[typeof(ReorderableListAttribute)] = new ReorderableListPropertyDrawer();
     drawersByAttributeType[typeof(SliderAttribute)]          = new SliderPropertyDrawer();
 }
Пример #2
0
 static PropertyDrawerDatabase()
 {
     drawersByAttributeType = new Dictionary <Type, PropertyDrawer>();
     drawersByAttributeType[typeof(DropdownAttribute)]          = new DropdownPropertyDrawer();
     drawersByAttributeType[typeof(MinMaxSliderAttribute)]      = new MinMaxSliderPropertyDrawer();
     drawersByAttributeType[typeof(ReadOnlyAttribute)]          = new ReadOnlyPropertyDrawer();
     drawersByAttributeType[typeof(ReorderableListAttribute)]   = new ReorderableListPropertyDrawer();
     drawersByAttributeType[typeof(ResizableTextAreaAttribute)] = new ResizableTextAreaPropertyDrawer();
     drawersByAttributeType[typeof(ShowAssetPreviewAttribute)]  = new ShowAssetPreviewPropertyDrawer();
 }
Пример #3
0
 static PropertyDrawerDatabase()
 {
     drawersByAttributeType = new Dictionary <Type, PropertyDrawer>();
     drawersByAttributeType[typeof(DisableIfAttribute)]         = new DisableIfPropertyDrawer();
     drawersByAttributeType[typeof(DropdownAttribute)]          = new DropdownPropertyDrawer();
     drawersByAttributeType[typeof(EnableIfAttribute)]          = new EnableIfPropertyDrawer();
     drawersByAttributeType[typeof(LabelAttribute)]             = new LabelPropertyDrawer();
     drawersByAttributeType[typeof(MinMaxSliderAttribute)]      = new MinMaxSliderPropertyDrawer();
     drawersByAttributeType[typeof(ProgressBarAttribute)]       = new ProgressBarPropertyDrawer();
     drawersByAttributeType[typeof(ReadOnlyAttribute)]          = new ReadOnlyPropertyDrawer();
     drawersByAttributeType[typeof(ReorderableListAttribute)]   = new ReorderableListPropertyDrawer();
     drawersByAttributeType[typeof(ResizableTextAreaAttribute)] = new ResizableTextAreaPropertyDrawer();
     drawersByAttributeType[typeof(ShowAssetPreviewAttribute)]  = new ShowAssetPreviewPropertyDrawer();
     drawersByAttributeType[typeof(SliderAttribute)]            = new SliderPropertyDrawer();
     drawersByAttributeType[typeof(TagAttribute)] = new TagPropertyDrawer();
 }