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

Hide marker text behind planets #5

Open
HebaruSan opened this issue Mar 14, 2021 · 0 comments
Open

Hide marker text behind planets #5

HebaruSan opened this issue Mar 14, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@HebaruSan
Copy link
Owner

HebaruSan commented Mar 14, 2021

Motivation

The bullseye rings are blocked by planets, but the text isn't:

image

Originally reported by forum user Krazy1.

Cause

The rings are LineRenderers, which exist in world space and so can be covered up by other things.

The text strings are GUI.Buttons, which are in a separate layer on top of everything else, so nothing covers them.

Ideas

Switch to UnityEngine.UI.Button and UnityEngine.UI.Text objects in world space.
So far when I try this, nothing displays, so I'm not initializing them right. Need some sample code from another mod to understand how to use them.

Also the rings should be switched from layer 9 to 31. I think the former came from TransferWindowPlanner, but stock orbit lines use the latter. This makes them disappear when you zoom out even slightly; layer 9 looks better for now.

I tried asking for help on the forum, but nobody seems to have an example of this component working in world space.

@HebaruSan HebaruSan added the enhancement New feature or request label Mar 14, 2021
@HebaruSan HebaruSan self-assigned this Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant