mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
register scene nodes in inspector
This commit is contained in:
@@ -199,6 +199,8 @@ use crate::{
|
||||
selection::SelectionSettings,
|
||||
},
|
||||
};
|
||||
use fyrox::scene::dim2::rectangle::Rectangle;
|
||||
use fyrox::scene::probe::ReflectionProbe;
|
||||
use fyrox_build_tools::{BuildProfile, CommandDescriptor, EnvironmentVariable};
|
||||
|
||||
pub mod animation;
|
||||
@@ -309,6 +311,14 @@ macro_rules! reg_node_handle_editors {
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! reg_node_editors {
|
||||
($container:ident, $($ty:ty),*) => {
|
||||
$(
|
||||
$container.insert(InspectablePropertyEditorDefinition::<$ty>::new());
|
||||
)*
|
||||
};
|
||||
}
|
||||
|
||||
pub fn make_property_editors_container(
|
||||
sender: MessageSender,
|
||||
resource_manager: ResourceManager,
|
||||
@@ -763,7 +773,35 @@ pub fn make_property_editors_container(
|
||||
Terrain,
|
||||
TileMap
|
||||
);
|
||||
container.register_inspectable::<scene::animation::AnimationPlayer>();
|
||||
|
||||
reg_node_editors!(
|
||||
container,
|
||||
scene::animation::AnimationPlayer,
|
||||
scene::animation::absm::AnimationBlendingStateMachine,
|
||||
Decal,
|
||||
dim2::collider::Collider,
|
||||
dim2::joint::Joint,
|
||||
dim2::rigidbody::RigidBody,
|
||||
DirectionalLight,
|
||||
PointLight,
|
||||
SpotLight,
|
||||
Pivot,
|
||||
Rectangle,
|
||||
Camera,
|
||||
Collider,
|
||||
RigidBody,
|
||||
Joint,
|
||||
Mesh,
|
||||
NavigationalMesh,
|
||||
ParticleSystem,
|
||||
ReflectionProbe,
|
||||
Ragdoll,
|
||||
Sound,
|
||||
Terrain,
|
||||
TileMap,
|
||||
Listener,
|
||||
Sprite
|
||||
);
|
||||
|
||||
container
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user