UnityEngine.TerrainData.SetTreeInstance C# (CSharp) Method

SetTreeInstance() public method

Set the tree instance with new parameters at the specified index. However, TreeInstance.prototypeIndex and TreeInstance.position can not be changed otherwise an ArgumentException will be thrown.

public SetTreeInstance ( int index, TreeInstance instance ) : void
index int The index of the tree instance.
instance TreeInstance The new TreeInstance value.
return void
        public void SetTreeInstance(int index, TreeInstance instance)
        {
            INTERNAL_CALL_SetTreeInstance(this, index, ref instance);
        }