Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
エディタ上でパーリンノイズによる地形を生成するサンプル
/// <Summary>
/// フィールドのパーツを削除するメソッドです。
/// </Summary>
void RemoveFieldParts(FieldGenerator generator)
{
for (int i = generator.fieldParent.childCount - 1; i >= 0; i--)
{
DestroyImmediate(generator.fieldParent.GetChild(i).gameObject);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment