Skip to content

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

@bhagerman

Description

@bhagerman

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++]); }

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