Home / Lua / Events / Client / ResolutionChange

Name    ResolutionChange
Arguments (in table)    Vector2 size
Return option    None

Description

Fired when the game's resolution changes. Render.Size is the previous resolution while in this event.

Examples

Foo = function(args)
	print("Resolution changed from "..tostring(Render.Size).." to "..tostring(args.size))
end

Events:Subscribe("ResolutionChange", Foo)