0
Not a Bug

Sign Unit Bug

zhaoyifan505 3 months ago updated by Lazlo Bonin (Lead Developer) 3 months ago 1
Great tool  !!!
I am a first learner with no program experience.So i'm not sure if this is a bug. At least i think it is.So please look at it.

Bolt Version:
2.0.0.0a5
Unity Version:
2019.2.0a4
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
GOOD, I'M SATISFIED
Satisfaction mark by zhaoyifan505 3 months ago
Not a Bug

Hi Zhaoyifan!

This is a built in Unity function that Bolt is just calling.

As indicated in the documentation, it returns one when the input value is zero:

https://docs.unity3d.com/ScriptReference/Mathf.Sign.html

You could create your own helper super unit with uses a Select unit to check for zero input before returning the result!