LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

Mathf.NegativeInfinity

public static float NegativeInfinity;

Description

A representation of negative infinity (Read Only).

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Debug.Log(Mathf.NegativeInfinity); } }