Disable "Create Tree Collider" by script?

Hello. Can anyone answer on my question, please: How can i Enable\Disable "Create Tree Collider" option (on "Terrain Collider") by script?

I could find no published access to that.

I think it will help , i test it ans it works .

First add you tree script reference to to terrain then .

using UnityEngine;
using System.Collections;

public class Test : MonoBehaviour {
	public PlayerCtrl3 playerst;
	public bool tick = false;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		if(tick == true)
		{
			playerst.collider.enabled = true;
			
		}
		else if(tick == false)
		{
			playerst.collider.enabled = false;
		}
	}
}