Skip to content

camera_create

Create a managed camera with an optional viewport. Available as camera_create after import_globals() or mv.camera.create.

Parameters

  • x — Start x.
  • y — Start y.
  • options? — A table with viewport, a region(x, y, width, height) descriptor.
local view = camera_create(100, 50)

Related: camera_set, camera_follow, mv.camera.position.

See the cameras guide for more examples and limits.