Home

Awesome

unity-procedural-flower

Procedural flower generator for Unity.

Demo

Example

PFTester in Demo.scene

Petals

Height

Leaves

Garden.scene

ProceduralFlower can animate.

Garden

Usage

PFShape

ProceduralFlower needs 3 PFShape(ScriptableObject) for petal and leaf shapes.

PFShape has control points and you can design its outline by the editor.

Editor

PFCombine

PFCombine enables to combine meshes of ProceduralFlower into one mesh.


public ProceduralFlower flower;
void Start () {
    var mesh = PFCombine.Combine(flower);
    GetComponent<MeshFilter>().sharedMesh = mesh;
}

Sources