Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for non-camera objects? #2

Open
3ternal opened this issue Feb 9, 2024 · 0 comments
Open

Support for non-camera objects? #2

3ternal opened this issue Feb 9, 2024 · 0 comments

Comments

@3ternal
Copy link

3ternal commented Feb 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant