So, I've almost finished a fairly complex foraging system which'll work for a range of different plants.
The issue I'm having at the moment is that I would like trees & bushes to have values that reflect the actual numbers on the Unity Tree (for example, the number of leaves the player can pick from the tree should be the number of leaves actually on the tree).
I've spent some time looking at the documentation, googling, etc, but I can't seem to find anything at all. Maybe it's not possible, or maybe I'm just not using the proper terms to find what I want.
Basically, is there any way I can get in-depth information about the trees (such as number of branches, potentially the lengths of individual branches, etc) and, preferably, edit them (such as creating breaks in branches) all at runtime?
Cheers.
Edit: Further investigation looks like in the past, TreeEditor.TreeData might have been the route to do what I'm looking for, but I can't find any real information on it, nor any equivalent in code in modern Unity. I can see it in the tree prefab, however, so I know that TreeData exists.
↧