0
Not a Bug

Sign Unit Bug

zhaoyifan505 4 days ago • updated by Lazlo Bonin (Lead Developer) yesterday at 9:39 a.m. 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
.NET Version:
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!