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

"Gizmos.DrawLineList()" Support for Unity 2021 - Fix Included #2

Open
bhagerman opened this issue Mar 2, 2025 · 1 comment · May be fixed by #4
Open

"Gizmos.DrawLineList()" Support for Unity 2021 - Fix Included #2

bhagerman opened this issue Mar 2, 2025 · 1 comment · May be fixed by #4

Comments

@bhagerman
Copy link

Gizmos.DrawLineList() is a function that does not exist in Unity 2021 - but does in every version thereafter (2022.2 forward)

To support 2021, a simple modification was made to ChunkNode.cs commenting out the Gizmos.DrawLineList call and replacing with a for each in collection loop:

int z = 0; foreach (var connectedNode in connections.Keys) { Gizmos.color = Color.blue; Gizmos.DrawLine(points[z++], points[z++]); }

@HunterProduction
Copy link
Owner

Thank you for your suggestion! I'll try to implement this compatibility fix when I find some time.

@HunterProduction HunterProduction changed the title Support for Unity 2021 - Fix Included "Gizmos.DrawLineList()" Support for Unity 2021 - Fix Included Mar 6, 2025
@ByteSz ByteSz linked a pull request Mar 8, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants