Version: 5.6 (switch to 2017.1b)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Terrain.detailObjectDistance

public float detailObjectDistance;

Description

Detail objects will be displayed up to this distance.

See Also: detailObjectDensity.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Start() { Terrain.activeTerrain.detailObjectDistance = 40; } }