-
-
Save todorok1/d85eee9ddadec36bae4ec6202a17ff50 to your computer and use it in GitHub Desktop.
エディタ上でパーリンノイズによる地形を生成するサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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