register property editors for audio entities
@@ -80,8 +80,9 @@ use fyrox::{
},
rigidbody::RigidBodyType,
sound::{
- self, reverb::Reverb, AudioBus, Biquad, DistanceModel, Effect, SoundBufferResource,
- SoundBufferResourceLoadError, SoundBufferState, Status,
+ self, reverb::Reverb, Attenuate, AudioBus, Biquad, DistanceModel, Effect,
+ EffectWrapper, SoundBufferResource, SoundBufferResourceLoadError, SoundBufferState,
+ Status,
},
terrain::Layer,
transform::Transform,
@@ -220,10 +221,14 @@ pub fn make_property_editors_container(
container.register_inheritable_inspectable::<Base>();
container.register_inheritable_inspectable::<BaseLight>();
- container.register_inheritable_enum::<Effect, _>();
+ container.insert(EnumPropertyEditorDefinition::<Effect>::new());
+ container.insert(InspectablePropertyEditorDefinition::<EffectWrapper>::new());
+ container.insert(VecCollectionPropertyEditorDefinition::<EffectWrapper>::new());
+ container.insert(InspectablePropertyEditorDefinition::<Attenuate>::new());
+ container.insert(InspectablePropertyEditorDefinition::<Reverb>::new());
+
container.register_inheritable_enum::<Emitter, _>();
- container.register_inheritable_inspectable::<Reverb>();
container.register_inheritable_inspectable::<Biquad>();
container.register_inheritable_inspectable::<AudioBus>();
container.register_inheritable_inspectable::<BaseEmitter>();
