Skip to content

Support for non-camera objects? #2

@3ternal

Description

@3ternal

Is there any way to use this package for arbitrary game objects? I tried attaching a game object without a camera to cameraTransform, but the shake was only being applied to its rotation, not position.

The reason I ask is because my canvas is set to World Space - Camera. Shaking the camera won't do anything, because the canvas will move itself to match the camera. I was thinking that I could simulate a canvas screen shake by setting a RectTransform as the target object, but it looks like only the rotation is working (this is true for regular transforms as well, not just RectTransforms). Right now, I'm not sure if there's a way to apply the screenshake to a Canvas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions