Skip to content

[bug] Use "for" instead of "foreach" in SplineMeshTiling #50

@programming2012

Description

@programming2012

Hi
In the SplineMeshTilling, I see the follow script:

foreach (var go in generated.transform
.Cast()
.Select(child => child.gameObject).Except(used)) {
UOUtility.Destroy(go);
}

But some times, one or more child did not destroy. After that, I store the "Select" result to an Array and use "for" instead of "foreach". The problem is solved.

                                               Thanks.

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