UnityEngine.TerrainData.GetTreeInstance C# (CSharp) Method

GetTreeInstance() public method

Get the tree instance at the specified index. It is used as a faster version of treeInstances[index] as this function doesn't create the entire tree instances array.

public GetTreeInstance ( int index ) : TreeInstance
index int The index of the tree instance.
return TreeInstance
        public TreeInstance GetTreeInstance(int index)
        {
            TreeInstance instance;
            INTERNAL_CALL_GetTreeInstance(this, index, out instance);
            return instance;
        }