I don't need to test my programs. I have an error-correcting modem.

UE3:CameraModifier (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UDK Object >> CameraModifier
Package: 
Engine
Direct subclass:
CameraModifier_CameraShake
This class in other games:
UT3


Properties[edit]

Property group 'Debug'[edit]

bDebug[edit]

Type: bool


Internal variables[edit]

Alpha[edit]

Type: float

Modifiers: protected, transient

Current blend alpha

AlphaInTime[edit]

Type: float

Modifiers: protected

When blending in, alpha proceeds from 0 to 1 over this time

AlphaOutTime[edit]

Type: float

Modifiers: protected

When blending out, alpha proceeds from 1 to 0 over this time

bDisabled[edit]

Type: bool

Modifiers: protected


bExclusive[edit]

Type: bool

Modifiers: protected

This modifier can only be used exclusively - no modifiers of same priority allowed

bPendingDisable[edit]

Type: bool


CameraOwner[edit]

Type: Camera

Camera this object is attached to

Priority[edit]

Type: byte

Modifiers: protected

Priority of this modifier - determines where it is added in the modifier list. 0 = highest priority, 255 = lowest

Default value: 127

TargetAlpha[edit]

Type: float

Modifiers: protected, transient

Desired alpha we are interpolating towards.

Functions[edit]

Native functions[edit]

IsDisabled[edit]

native function bool IsDisabled () const

Accessor function to check if modifier is inactive

ModifyCamera[edit]

native function bool ModifyCamera (Camera Camera, float DeltaTime, out Object.TPOV OutPOV)

Directly modifies variables in the camera actor

Parameters:

  • Camera - reference to camera actor we are modifying
  • DeltaTime - Change in time since last update
  • OutPOV - current Point of View, to be updated.

Returns:

bool TRUE if should STOP looping the chain, FALSE otherwise

UpdateAlpha[edit]

native function UpdateAlpha (Camera Camera, float DeltaTime)

Responsible for updating alpha blend value.

Parameters:

  • Camera - Camera that is being updated
  • DeltaTime - Amount of time since last update

Events[edit]

DisableModifier[edit]

event DisableModifier (optional bool bImmediate)

Accessor functions for changing disable flag

Parameters:

  • bImmediate - TRUE to disable with no blend out, FALSE (default) to allow blend out

Other instance functions[edit]

AddCameraModifier[edit]

function bool AddCameraModifier (Camera Camera)

Camera modifier evaluates itself vs the given camera's modifier list and decides whether to add itself or not. Handles adding by priority and avoiding adding the same modifier twice.

Parameters:

  • Camera - reference to camera actor we want add this modifier to

Returns:

bool - TRUE if modifier added to camera's modifier list, FALSE otherwise

EnableModifier[edit]

function EnableModifier ()


Init[edit]

function Init ()

Allow anything to happen right after creation

ProcessViewRotation[edit]

simulated function bool ProcessViewRotation (Actor ViewTarget, float DeltaTime, out Object.Rotator out_ViewRotation, out Object.Rotator out_DeltaRot)

Allow this modifier a chance to change view rotation and deltarot Default just returns ViewRotation unchanged

Returns:

bool - TRUE if should stop looping modifiers to adjust rotation, FALSE otherwise

RemoveCameraModifier[edit]

function bool RemoveCameraModifier (Camera Camera)

Camera modifier removes itself from given camera's modifier list

Parameters:

  • Camera - reference to camara actor we want to remove this modifier from

Returns:

bool - TRUE if modifier removed successfully, FALSE otherwise

ToggleModifier[edit]

function ToggleModifier ()