MeatMotion

CameraMotionExtensions

Animate camera settings such as field of view, clipping planes, background color and viewport.

Namespace
MeatMotion.Extensions
Assembly
MeatMotion

Jump to members

public static class CameraMotionExtensions
RenderingMotionExtensions.cs · L12

Members

BindToAspect

Schedule a tween that writes the interpolated value to Aspect on the bound target and return its MotionHandle.

public static MotionHandle BindToAspect(this FloatMotionBuilder builder, Camera camera)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
camera
Camera Target Camera that receives the update.
Returns
MotionHandle
public static MotionHandle BindToAspect<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Camera camera)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<float, TOptions>
Parameters and return value
builder
this MotionBuilder<float, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
camera
Camera Target Camera that receives the update.
Returns
MotionHandle

BindToNearClipPlane

Schedule a tween that writes the interpolated value to NearClipPlane on the bound target and return its MotionHandle.

public static MotionHandle BindToNearClipPlane(this FloatMotionBuilder builder, Camera camera)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
camera
Camera Target Camera that receives the update.
Returns
MotionHandle
public static MotionHandle BindToNearClipPlane<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Camera camera)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<float, TOptions>
Parameters and return value
builder
this MotionBuilder<float, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
camera
Camera Target Camera that receives the update.
Returns
MotionHandle

BindToFarClipPlane

Schedule a tween that writes the interpolated value to FarClipPlane on the bound target and return its MotionHandle.

public static MotionHandle BindToFarClipPlane(this FloatMotionBuilder builder, Camera camera)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
camera
Camera Target Camera that receives the update.
Returns
MotionHandle
public static MotionHandle BindToFarClipPlane<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Camera camera)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<float, TOptions>
Parameters and return value
builder
this MotionBuilder<float, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
camera
Camera Target Camera that receives the update.
Returns
MotionHandle

BindToFieldOfView

Schedule a tween that writes the interpolated value to FieldOfView on the bound target and return its MotionHandle.

public static MotionHandle BindToFieldOfView(this FloatMotionBuilder builder, Camera camera)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
camera
Camera Target Camera that receives the update.
Returns
MotionHandle
public static MotionHandle BindToFieldOfView<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Camera camera)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<float, TOptions>
Parameters and return value
builder
this MotionBuilder<float, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
camera
Camera Target Camera that receives the update.
Returns
MotionHandle

BindToOrthographicSize

Schedule a tween that writes the interpolated value to OrthographicSize on the bound target and return its MotionHandle.

public static MotionHandle BindToOrthographicSize(this FloatMotionBuilder builder, Camera camera)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
camera
Camera Target Camera that receives the update.
Returns
MotionHandle
public static MotionHandle BindToOrthographicSize<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Camera camera)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<float, TOptions>
Parameters and return value
builder
this MotionBuilder<float, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
camera
Camera Target Camera that receives the update.
Returns
MotionHandle

BindToRect

Schedule a tween that writes the interpolated value to Rect on the bound target and return its MotionHandle.

public static MotionHandle BindToRect<TOptions, TAdapter>(this MotionBuilder<Rect, TOptions, TAdapter> builder, Camera camera)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Rect, TOptions>
Parameters and return value
builder
this MotionBuilder<Rect, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
camera
Camera Target Camera that receives the update.
Returns
MotionHandle

BindToPixelRect

Schedule a tween that writes the interpolated value to PixelRect on the bound target and return its MotionHandle.

public static MotionHandle BindToPixelRect<TOptions, TAdapter>(this MotionBuilder<Rect, TOptions, TAdapter> builder, Camera camera)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Rect, TOptions>
Parameters and return value
builder
this MotionBuilder<Rect, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
camera
Camera Target Camera that receives the update.
Returns
MotionHandle

BindToBackgroundColor

Schedule a tween that writes the interpolated value to BackgroundColor on the bound target and return its MotionHandle.

public static MotionHandle BindToBackgroundColor<TOptions, TAdapter>(this MotionBuilder<Color, TOptions, TAdapter> builder, Camera camera)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Color, TOptions>
Parameters and return value
builder
this MotionBuilder<Color, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
camera
Camera Target Camera that receives the update.
Returns
MotionHandle