Skip to main content

RenderingServer

Inherits: Object

Description

Server for anything visible. The rendering server is the API backend for everything visible. The whole scene system mounts on it to display.

Methods

camera_create

RID camera_create()
Creates a 3D camera and adds it to the RenderingServer. Returns the RID.

viewport_create

RID viewport_create()
Creates a viewport and returns the assigned RID.

canvas_create

RID canvas_create()
Creates a canvas and returns the assigned RID.

mesh_create

RID mesh_create()
Creates a mesh and returns its RID.

Example Usage

# Create a camera
var camera_rid = RenderingServer.camera_create()

# Create a viewport
var viewport_rid = RenderingServer.viewport_create()

Build docs developers (and LLMs) love