Table of Contents

Class CompositorCameras

Namespace
Stride.CommunityToolkit.Rendering.Compositing
Assembly
Stride.CommunityToolkit.dll

Finds the camera a scene renderer should draw with, for renderers that sit outside the camera renderer and so have no current camera on the context.

public static class CompositorCameras
Inheritance
CompositorCameras

Remarks

Tries the compositor's first camera slot, then walks the renderer tree for a camera renderer. Game Studio's scene editor leaves the slots empty and hands its camera to the top-level renderer instead. Returns null when neither has a camera.

Methods

Find(RenderContext)

The camera of the current compositor: its first slot, or its first camera renderer.

public static CameraComponent? Find(RenderContext context)

Parameters

context RenderContext

Returns

CameraComponent