Mathf.Min
static function Min (a : float, b : float) : float
static function Min (params values : float[]) : float
Description
Returns the smallest of two or more values.
using UnityEngine;
using System.Collections;
public class example :
MonoBehaviour {
void Awake() {
print(
Mathf.Min(1.2F, 2.4F));
}
}
import UnityEngine
import System.Collections
class example(
MonoBehaviour):
def
Awake():
print(
Mathf.Min(1.2F, 2.4F))
static function Min (a : int, b : int) : int
static function Min (params values : int[]) : int
Description
Returns the smallest of two or more values.
using UnityEngine;
using System.Collections;
public class example :
MonoBehaviour {
void Awake() {
print(
Mathf.Min(1, 2));
}
}