Class CameraShake
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: NeoFPS
Assembly: NeoFPS.dll
Syntax
public class CameraShake : ShakeHandler, IAdditiveTransform, IMonoBehaviour
Properties
bypassPositionMultiplier
Declaration
public bool bypassPositionMultiplier { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
bypassRotationMultiplier
Declaration
public bool bypassRotationMultiplier { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
position
Declaration
public Vector3 position { get; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
rotation
Declaration
public Quaternion rotation { get; }
Property Value
| Type | Description |
|---|---|
| Quaternion |
strength
Declaration
public float strength { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Methods
Awake()
Declaration
protected override void Awake()
Overrides
DoShake(Single, Single, Boolean)
Declaration
protected override void DoShake(float strength, float duration, bool requiresGrounding)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | strength | |
| System.Single | duration | |
| System.Boolean | requiresGrounding |
Overrides
DoShakeContinuous(Single)
Declaration
protected override void DoShakeContinuous(float strength)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | strength |
Overrides
OnDisable()
Declaration
protected override void OnDisable()
Overrides
OnEnable()
Declaration
protected override void OnEnable()
Overrides
OnValidate()
Declaration
protected void OnValidate()
UpdateTransform()
Declaration
public void UpdateTransform()