API ReferenceSandbox
ICameraModifierclass
Reshapes a camera's view each frame - scope zoom, vehicle roll, aim-down-sights. Implement on any component: when a camera composes its view it runs every modifier in `Sandbox.ICameraModifier.CameraOrder`, then hands the final view to `Sandbox.ICameraModifier.PostCameraSetup(Sandbox.CameraComponent,Sandbox.CameraView@)` so things can be placed against it.
object→ICameraModifier
Methods2
Showing 2 methods
public virtual void ModifyCamera(Sandbox.CameraComponent camera, Sandbox.CameraView view)
Reshape the view. Runs once per camera per frame, in order, at the camera stage of the tick - after Update and bone merging, before PreRender.
| Parameter | Type | Description |
|---|---|---|
| camera | CameraComponent | — |
| view | CameraView | — |
Returns:
void—public virtual void PostCameraSetup(Sandbox.CameraComponent camera, Sandbox.CameraView& modreq(System.Runtime.InteropServices.InAttribute) view)
| Parameter | Type | Description |
|---|---|---|
| camera | CameraComponent | — |
| view | CameraView& modreq(InAttribute) | — |
Returns:
void—No results match this filter.
Properties1
Showing 1 properties
public virtual int Sandbox.ICameraModifier.CameraOrder { get; set; }
Lower runs first - a player's camera ~0, vehicles ~100, held weapons ~200.
Returns:
int—No results match this filter.