Table of Contents

Class RenderSceneData

Namespace
Godot
Assembly
GodotSharp.dll

Abstract scene data object, exists for the duration of rendering a single viewport.

Note: This is an internal rendering server object, do not instantiate this from script.

public class RenderSceneData : GodotObject, IDisposable
Inheritance
RenderSceneData
Implements
Derived
Inherited Members

Methods

GetCamProjection()

Returns the camera projection used to render this frame.

Note: If more than one view is rendered, this will return a combined projection.

public Projection GetCamProjection()

Returns

Projection

GetCamTransform()

Returns the camera transform used to render this frame.

Note: If more than one view is rendered, this will return a centered transform.

public Transform3D GetCamTransform()

Returns

Transform3D

GetUniformBuffer()

Return the Rid of the uniform buffer containing the scene data as a UBO.

public Rid GetUniformBuffer()

Returns

Rid

GetViewCount()

Returns the number of views being rendered.

public uint GetViewCount()

Returns

uint

GetViewEyeOffset(uint)

Returns the eye offset per view used to render this frame. This is the offset between our camera transform and the eye transform.

public Vector3 GetViewEyeOffset(uint view)

Parameters

view uint

Returns

Vector3

GetViewProjection(uint)

Returns the view projection per view used to render this frame.

Note: If a single view is rendered, this returns the camera projection. If more than one view is rendered, this will return a projection for the given view including the eye offset.

public Projection GetViewProjection(uint view)

Parameters

view uint

Returns

Projection

HasGodotClassMethod(in godot_string_name)

Check if the type contains a method with the given name. This method is used by Godot to check if a method exists before invoking it. Do not call or override this method.

protected override bool HasGodotClassMethod(in godot_string_name method)

Parameters

method godot_string_name

Name of the method to check for.

Returns

bool

HasGodotClassSignal(in godot_string_name)

Check if the type contains a signal with the given name. This method is used by Godot to check if a signal exists before raising it. Do not call or override this method.

protected override bool HasGodotClassSignal(in godot_string_name signal)

Parameters

signal godot_string_name

Name of the signal to check for.

Returns

bool

InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)

Invokes the method with the given name, using the given arguments. This method is used by Godot to invoke methods from the engine side. Do not call or override this method.

protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)

Parameters

method godot_string_name

Name of the method to invoke.

args NativeVariantPtrArgs

Arguments to use with the invoked method.

ret godot_variant

Value returned by the invoked method.

Returns

bool