Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
エディタ上でパーリンノイズによる地形を生成するサンプル
/// <Summary>
/// 結合したメッシュを表示するGameObjectを作成します。
/// </Summary>
GameObject CreateMeshObj(string matName, GameObject combineParent)
{
GameObject obj = new GameObject();
obj.name = $"CombinedMesh_{matName}";
obj.transform.SetParent(combineParent.transform);
obj.transform.localPosition = Vector3.zero;
return obj;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment