You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Make the GridMap editor cursor translucent
This makes it possible to distinguish GridMap tiles that haven't been placed yet from those that are already in place.
This commit is contained in:
@@ -1286,6 +1286,10 @@ void GridMapEditor::_update_cursor_instance() {
|
||||
cursor_outer_mat->set_albedo(Color(pick_color, 0.8));
|
||||
cursor_instance = RenderingServer::get_singleton()->instance_create2(cursor_mesh, get_tree()->get_root()->get_world_3d()->get_scenario());
|
||||
}
|
||||
|
||||
// Make the cursor translucent so that it can be distinguished from already-placed tiles.
|
||||
RenderingServer::get_singleton()->instance_geometry_set_transparency(cursor_instance, 0.5);
|
||||
|
||||
_update_cursor_transform();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user