Hi, I wonder if it is possible to get the names of (not access) the variables and functions inside a script, whiteout have looked at the source for that script.
I want to do this because i want to be able to make grass in runtime, but i cant find the variable holding the grass instances.
Yes I know I can access that, but there is a “hidden” var in the TerainData object:
Named TreeInstances or something like that, I’m using that to generate trees at runtime, there should be a grassInstances var too, but I can’t find the name for it, I have tried with a lot o different names.
Those names aren’t highlighted in unitron so they are a little hard to find.
The variable is called detailPrototypes and is an array filled with structures of type detailPrototype. What I don’t know so far is how is that structure. I suppose it is made of something like an index to the detail mesh and a position.
Is there a way to know how an structure is defined?
Hello. Searching the forum you will find that .Tom. already solved this problem. He sells a group of very useful Terrain tools. You will find them here… http://web.lemuria.org/projects/wiki/TerrainTools