Represents a camera and holds render hooks. This camera can be used to draw tool windows and scene panels.
The color of the ambient light. Set it to black for no ambient light.
Enable or disable anti-aliasing for this render.
Color the scene camera clears the render target to.
Toggle all post processing effects for this camera. The default is on.
Scene objects with any of these tags won't be rendered by this camera.
The horizontal field of view of the Camera in degrees.
The entity that we're viewing from (if applicable)
Returns true if this is the main game camera, on which game UI is drawn
The name of this camera.. for debugging purposes.
Whether to use orthographic projection.
Height of the ortho when SceneCamera.Ortho is enabled.
Width of the ortho when SceneCamera.Ortho is enabled.
List of active render hooks on this scene camera.
Only scene objects with one of these tags will be rendered by this camera.
The size of the screen. Allows us to work out aspect ratio. For now will get updated automatically on render.
The world we're going to render.
Your camera can render multiple worlds.
The camera's zFar distance. This is the furthest distance this camera will be able to render. This value totally depends on the game you're making. Shorter the better, sensible ranges would be between about 1000 and 30000, but if you want it to be further out you can balance that out by making znear larger.
The camera's zNear distance. This is the closest distance this camera will be able to render. A good value for this is about 5. Below 5 and particularly below 1 you're going to start to see a lot of artifacts like zfighting.
Add a specific render hook to this camera.
Find a hook that matches the type, or null
Find a hook that matches the type, or null
Find a hook that matches T, if not found then create and return
Given a cursor position get a scene aiming ray.
Remove all hooks of type, return the amount of hooks removed
Remove all hooks, return the amount removed
Remove a specific render hook from this camera.
Set attributes for rendering the viewmodel's camera.
Render this camera to the target widget. Once you do this the target widget becomes "externally painted", so you won't be able to paint on it anymore with Qt's Paint stuff.
If applied to a Sandbox.RenderHook, then the hook will be applied to the SceneCamera by default.