# unity-procedural-tree **Repository Path**: MegaByte_admin/unity-procedural-tree ## Basic Information - **Project Name**: unity-procedural-tree - **Description**: No description available - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-14 - **Last Updated**: 2021-03-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README unity-procedural-tree ===================== Procedural tree builder for Unity. ![Demo](https://raw.githubusercontent.com/mattatz/unity-procedural-tree/master/Captures/Demo.gif) ## Usage TreeData class has properties of ProceduralTree. ![TreeData](https://raw.githubusercontent.com/mattatz/unity-procedural-tree/master/Captures/TreeData.png) Setup a TreeData instance and pass it to ProceduralTree.Build function. ```cs // Setup TreeData for properties of ProceduralTree TreeData data = new TreeData(); // data.randomSeed = 100; // data.branchesMin = 1; data.branchesMax = 3; Mesh mesh = ProceduralTree.Build( data, 6, // generations of a tree 1.5f, // base height of a tree 0.15f // base radius of a tree ); ```