Material Box

Material Box

WEB Design & Material Images

Godot - Zoom camera in and out

Godot

Code example to zoom camera in/out by changing zoom property in GDScript.


By changing the zoom property of the camera node, it is possible to enlarge and reduce the camera display.
The zoom property value is specified as a Vector2.

var camera = Camera2D.new()

func _ready():
	camera.zoom = Vector2(3, 3)

Godot

TitleGodot - Zoom camera in and out

CategoryGodot

Created

Update

AuthorYousuke.U