Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Mathf.NegativeInfinity

static var NegativeInfinity: float;
static float NegativeInfinity;
static NegativeInfinity as float

Description

A representation of negative infinity (Read Only).

	Debug.Log(Mathf.NegativeInfinity);
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Example() {
        Debug.Log(Mathf.NegativeInfinity);
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Example() as void:
		Debug.Log(Mathf.NegativeInfinity)