Пример #1
0
Polygon2DEditorPlugin::Polygon2DEditorPlugin(EditorNode *p_node) {

	editor = p_node;
	collision_polygon_editor = memnew(Polygon2DEditor(p_node));
	CanvasItemEditor::get_singleton()->add_control_to_menu_panel(collision_polygon_editor);

	collision_polygon_editor->hide();
}
Пример #2
0
Polygon2DEditorPlugin::Polygon2DEditorPlugin(EditorNode *p_node)
	: AbstractPolygon2DEditorPlugin(p_node, memnew(Polygon2DEditor(p_node)), "Polygon2D") {
}