Returns the smallest of two or more values.
// prints 1.2 print(Mathf.Min(1.2, 2.4));
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { print(Mathf.Min(1.2F, 2.4F)); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: print(Mathf.Min(1.2F, 2.4F))
Returns the smallest of two or more values.
// prints 1 print(Mathf.Min(1, 2));
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { print(Mathf.Min(1, 2)); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: print(Mathf.Min(1, 2))