⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    BoxShakeZone2D MonoBehaviour

    Overview

    The BoxShakeZone2D behaviour defines a 2D box area (on the x-y plane) with a constant shake value used by the CameraShake additive transform effect. The shake zone is not affected by the scale of the object it's attached to or its parent. To change its size, use the properties in the inspector.

    Inspector

    BoxShakeZone2D

    Properties

    Name Type Description
    Strength Float The strength of the shake.
    Size Vector The dimensions of the box along each axis (centered on position).
    Falloff Distance Float The distance outside of the box that the strength falls off to zero.

    See Also

    Additive Transforms

    CameraShake

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX