Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

TextMesh.tabSize

Switch to Manual
public float tabSize;

Description

How much space will be inserted for a tab '\t' character. This is a multiplum of the 'spacebar' character offset.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { GetComponent<TextMesh>().tabSize = 5; } }

Did you find this page useful? Please give it a rating: