Skip to content

ScreenElement collider error, and ScreenElement works only for graphics? #2597

Answered by eonarheim
KokoDoko asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @KokoDoko that error also seems like a bug... I think it might be because there is no width/height specified in the ScreenElement so it tries to create a 0/0 collider causing the message. Thanks for spotting, I'll add another bug for that!

To have the children independent of the camera try setting their TransformComponent.coordPlan to Screen or use another ScreenElement as the child.

ScreenElement under the hood is really just sugar on top of actor to set a couple of properties that are convenient for that use case.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@eonarheim
Comment options

@eonarheim
Comment options

Answer selected by KokoDoko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants