UnityEngine.TerrainData.SetTreeInstance C# (CSharp) 메소드

SetTreeInstance() 공개 메소드

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.
리턴 void
        public void SetTreeInstance(int index, TreeInstance instance)
        {
            INTERNAL_CALL_SetTreeInstance(this, index, ref instance);
        }