The color of the highlighter to show which characters are selected.
#pragma strict // Required when Using UI elements. public class Example { public var mainInputField; // Changes the color of the highlighter that shows what characters are selected. function ChangeSelectionColor() { mainInputField.selectionColor = Color.red; } }
using UnityEngine; using System.Collections; using UnityEngine.UI; // Required when Using UI elements.
public class Example : MonoBehaviour {
public InputField mainInputField;
// Changes the color of the highlighter that shows what characters are selected. void ChangeSelectionColor () { mainInputField.selectionColor = Color.red; } }