Content-Length: 19431 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Vector3.Max.html
Returns a vector that is made from the largest components of two vectors.
Additional resources: Min function.
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { public Vector3 a = new Vector3(1, 2, 3); public Vector3 b = new Vector3(4, 3, 2);
void Example() { print(Vector3.Max(a, b)); // prints (4.0f, 3.0f, 3.0f) } }
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Vector3.Max.html
Alternative Proxies: