- Home /
Subtracting Mathf.Abs values
When I set the absolute value of a variable to another variable, repeat that process, and try to subtract the two I get a MissingMethodException regarding UnityEngine.Mathf.Abs. For example:
var example1 : float;
var example2 : float;
var absExample1 : float;
function Start () {
example1 = 10;
example2 = 5;
absExample1 = Mathf.Abs(example1) - Mathf.Abs(example2);
}
Comment
Answer by raimon.massanet · Nov 27, 2013 at 09:41 AM
I haven't been able to reproduce your error. It works fine for me both in JS and C#.