|
@@ -1481,8 +1481,6 @@ void Light3DGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-//////
|
|
|
|
-
|
|
|
|
//// player gizmo
|
|
//// player gizmo
|
|
AudioStreamPlayer3DGizmoPlugin::AudioStreamPlayer3DGizmoPlugin() {
|
|
AudioStreamPlayer3DGizmoPlugin::AudioStreamPlayer3DGizmoPlugin() {
|
|
Color gizmo_color = EDITOR_DEF("editors/3d_gizmos/gizmo_colors/stream_player_3d", Color(0.4, 0.8, 1));
|
|
Color gizmo_color = EDITOR_DEF("editors/3d_gizmos/gizmo_colors/stream_player_3d", Color(0.4, 0.8, 1));
|
|
@@ -1621,6 +1619,29 @@ void AudioStreamPlayer3DGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
|
|
|
|
|
|
//////
|
|
//////
|
|
|
|
|
|
|
|
+Listener3DGizmoPlugin::Listener3DGizmoPlugin() {
|
|
|
|
+ create_icon_material("listener_3d_icon", Node3DEditor::get_singleton()->get_theme_icon("GizmoListener3D", "EditorIcons"));
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+bool Listener3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
|
|
|
+ return Object::cast_to<Listener3D>(p_spatial) != nullptr;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+String Listener3DGizmoPlugin::get_gizmo_name() const {
|
|
|
|
+ return "Listener3D";
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+int Listener3DGizmoPlugin::get_priority() const {
|
|
|
|
+ return -1;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void Listener3DGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
|
|
|
|
+ const Ref<Material> icon = get_material("listener_3d_icon", p_gizmo);
|
|
|
|
+ p_gizmo->add_unscaled_billboard(icon, 0.05);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+//////
|
|
|
|
+
|
|
Camera3DGizmoPlugin::Camera3DGizmoPlugin() {
|
|
Camera3DGizmoPlugin::Camera3DGizmoPlugin() {
|
|
Color gizmo_color = EDITOR_DEF("editors/3d_gizmos/gizmo_colors/camera", Color(0.8, 0.4, 0.8));
|
|
Color gizmo_color = EDITOR_DEF("editors/3d_gizmos/gizmo_colors/camera", Color(0.8, 0.4, 0.8));
|
|
|
|
|