What this component contains
ATTRIBUTION.mdLICENSEREADME.mdbaltor_test.gdcomponent.jsoninspect_gdscript.pyrun_tests.gdtest_package.pytests/test_zoom_to_fit_2d.gdverification/native.jsonzoom_to_fit_2d.gd
How it works
- Class
- BaltorGroupCamera2D, extends Camera2D
- Methods
- fit(points: PackedVector2Array, view_size: Vector2, border: float, smallest: float, largest: float) -> Dictionary; update_camera(points: PackedVector2Array, view_size: Vector2, delta: float) -> void
- Exports
- targets, margin, min_zoom, max_zoom, follow_speed
- Placement
- res://baltor/godot_components/zoom_to_fit_2d/
Recorded checks
godot 4.7.2.stable.official.ed1daf0bf
godot_parse_check_onlygodot_gdscript_testsgodot_tests_reject_gutted_componentgodot_editor_importgodot_contract_reflectiongodot_readme_usage_compiles
Limits to consider
Fits the axis-aligned bounds of target positions, not their sprites; raise the margin for large characters. Uses the viewport size, so stretch settings change the result. Verified with Godot 4.7.2 headless; written against the Godot 4.3 API.