Class CameraShake
A CameraShake is an asset that defines how to shake the camera in a particular way.
Inherited Members
Namespace: UE4.Engine
Assembly: UE4DotNet.dll
Syntax
public class CameraShake : UObject
Remarks
CameraShakes can be authored as either oscillating shakes, animated shakes, or both.
An oscillating shake will sinusoidally vibrate various camera parameters over time. Each location and rotation axis can be oscillated independently with different parameters to create complex and random-feeling shakes. These are easier to author and tweak, but can still feel mechanical and are limited to vibration-style shakes, such as earthquakes.
Animated shakes play keyframed camera animations. These can take more effort to author, but enable more natural-feeling results and things like directional shakes. For instance, you can have an explosion to the camera's right push it primarily to the left.
Properties
| Improve this Doc View SourceAnim
Source camera animation to play. Can be null.
Declaration
public CameraAnim Anim { get; set; }
Property Value
Type | Description |
---|---|
CameraAnim |
AnimBlendInTime
Linear blend-in time.
Declaration
public float AnimBlendInTime { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
AnimBlendOutTime
Linear blend-out time.
Declaration
public float AnimBlendOutTime { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
AnimInst
The playing instance of the CameraAnim-based shake, if any.
Declaration
public CameraAnimInst AnimInst { get; }
Property Value
Type | Description |
---|---|
CameraAnimInst |
AnimPlayRate
Scalar defining how fast to play the anim.
Declaration
public float AnimPlayRate { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
AnimScale
Scalar defining how "intense" to play the anim.
Declaration
public float AnimScale { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
bRandomAnimSegment
Declaration
public bool bRandomAnimSegment { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
bSingleInstance
Declaration
public bool bSingleInstance { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CameraOwner
Camera Owner
Declaration
public PlayerCameraManager CameraOwner { get; }
Property Value
Type | Description |
---|---|
PlayerCameraManager |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static CameraShake DefaultObject { get; }
Property Value
Type | Description |
---|---|
CameraShake |
FOVOscillation
FOV oscillation
Declaration
public FOscillator FOVOscillation { get; set; }
Property Value
Type | Description |
---|---|
FOscillator |
LocOscillation
Positional oscillation
Declaration
public VOscillator LocOscillation { get; set; }
Property Value
Type | Description |
---|---|
VOscillator |
OscillationBlendInTime
Duration of the blend-in, where the oscillation scales from 0 to 1.
Declaration
public float OscillationBlendInTime { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
OscillationBlendOutTime
Duration of the blend-out, where the oscillation scales from 1 to 0.
Declaration
public float OscillationBlendOutTime { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
OscillationDuration
Duration in seconds of current screen shake. Less than 0 means indefinite, 0 means no oscillation.
Declaration
public float OscillationDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
OscillatorTimeRemaining
Time remaining for oscillation shakes. Less than 0.f means shake infinitely.
Declaration
public float OscillatorTimeRemaining { get; }
Property Value
Type | Description |
---|---|
System.Single |
RandomAnimSegmentDuration
When bRandomAnimSegment is true, this defines how long the anim should play.
Declaration
public float RandomAnimSegmentDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
RotOscillation
Rotational oscillation
Declaration
public ROscillator RotOscillation { get; set; }
Property Value
Type | Description |
---|---|
ROscillator |
ShakeScale
Overall intensity scale for this shake instance.
Declaration
public float ShakeScale { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceNew(UObject, Name)
Spawn an object of this class
Declaration
public static CameraShake New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
CameraShake |
Events
| Improve this Doc View SourceBlueprintUpdateCameraShake
Called every tick to let the shake modify the point of view
Declaration
public event CameraShake.BlueprintUpdateCameraShake_delegate BlueprintUpdateCameraShake
Event Type
Type | Description |
---|---|
CameraShake.BlueprintUpdateCameraShake_delegate |
ReceiveIsFinished
Called to allow a shake to decide when it's finished playing.
Declaration
public event CameraShake.ReceiveIsFinished_delegate ReceiveIsFinished
Event Type
Type | Description |
---|---|
CameraShake.ReceiveIsFinished_delegate |
ReceivePlayShake
Called when the shake starts playing
Declaration
public event CameraShake.ReceivePlayShake_delegate ReceivePlayShake
Event Type
Type | Description |
---|---|
CameraShake.ReceivePlayShake_delegate |
ReceiveStopShake
Called when the shake is explicitly stopped.
Declaration
public event CameraShake.ReceiveStopShake_delegate ReceiveStopShake
Event Type
Type | Description |
---|---|
CameraShake.ReceiveStopShake_delegate |
Remarks
@param bImmediatly If true, shake stops right away regardless of blend out settings. If false, shake may blend out according to its settings.
Operators
| Improve this Doc View SourceImplicit(IntPtr to CameraShake)
Convert from IntPtr to UObject
Declaration
public static implicit operator CameraShake(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
CameraShake |